/[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 316 - (show annotations)
Thu Apr 24 07:26:24 2014 UTC (10 years ago) by dpavlin
File MIME type: application/x-sh
File size: 483 byte(s)
split master and storage node, support machines with dash in name

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 storage=10.60.0.112
9 storage_node=vmh12
10
11 storage=10.60.0.202
12 storage_node=lib20
13
14 test -d ganeti || mkdir ganeti
15
16 ssh_master() {
17 log=`basename $1`
18 if [ "$1" == "gnt-instance" ] ; then
19 ssh root@$master $*
20 else
21 ssh root@$master $* | tee ganeti/$log
22 fi
23 }
24
25 ssh_storage() {
26 log=`basename $1`
27 ssh root@$storage $* | tee ganeti/$log
28 }

  ViewVC Help
Powered by ViewVC 1.1.26