/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/0-ganeti.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/ganeti/migrate-lxc/0-ganeti.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 310 - (show annotations)
Sun Jan 12 16:07:52 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 326 byte(s)
split host configure to acpi and console

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 }

  ViewVC Help
Powered by ViewVC 1.1.26