forksand-it-manual/source/resources/apps/proxmox/forksand-clusterssh-gen-config

15 lines
332 B

#!/bin/bash
for i in \
`ssh sf-001 sudo pvesh get pools 2>/dev/null | grep poolid | cut -f 4 -d '"'`
do echo -n "sf-$i " | tr '[:upper:]' '[:lower:]'
echo -n `ssh sf-001 sudo pvesh get pools/$i 2>/dev/null | grep '"name"' |cut -f 4 -d '"'`
echo
ALL="$ALL sf-`echo -n $i | tr '[:upper:]' '[:lower:]'`"
done
echo "sf-vm $ALL"