split host configure to acpi and console
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 0-ganeti.sh
1 #master=`ssh root@10.60.0.112 gnt-cluster getmaster`
2 #if [ -z "$master" ] ; then
3 #       echo "Ganeti master not found"
4 #       exit 1
5 #fi
6
7 master=10.60.0.112
8
9 test -d ganeti || mkdir ganeti
10
11 ssh_master() {
12         log=`basename $1`
13         if [ "$1" == "gnt-instance" ] ; then
14                 ssh root@$master $*
15         else
16                 ssh root@$master $* | tee ganeti/$log
17         fi
18 }