/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/0-host.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

Annotation of /recepies/ganeti/migrate-lxc/0-host.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 316 - (hide annotations)
Thu Apr 24 07:26:24 2014 UTC (10 years, 1 month ago) by dpavlin
File MIME type: application/x-sh
File size: 243 byte(s)
split master and storage node, support machines with dash in name

1 dpavlin 316 export host_fqdn=koha-dev.rot13.org
2 dpavlin 312 test -z "$host" && host=`echo $host_fqdn | cut -d. -f1`
3     export host
4 dpavlin 306 test -d $host || mkdir $host
5    
6 dpavlin 316 hostlv=`echo $host | sed 's/-/--/g'`
7    
8 dpavlin 306 ssh_host() {
9     log=`basename $1`
10     ssh root@$host $* | tee $host/$log
11     }
12    

  ViewVC Help
Powered by ViewVC 1.1.26