/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.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

Diff of /recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 315 by dpavlin, Wed Jan 29 00:13:48 2014 UTC revision 316 by dpavlin, Thu Apr 24 07:26:24 2014 UTC
# Line 24  iface eth1 inet static Line 24  iface eth1 inet static
24  __INTERFACES__  __INTERFACES__
25    
26  # this will backup file on original machine which is still running!  # this will backup file on original machine which is still running!
27  ping -c 1 $host && ssh_master chroot /tmp/$host bak add,commit /etc/network/interfaces  ping -c 1 $host && ssh_storage chroot /tmp/$host bak add,commit /etc/network/interfaces
28    
29  scp /tmp/network-interfaces-$host root@$master:/tmp/  scp /tmp/network-interfaces-$host root@$storage:/tmp/
30    
31  ssh_master mv -v /tmp/network-interfaces-$host /tmp/$host/etc/network/interfaces  ssh_storage mv -v /tmp/network-interfaces-$host /tmp/$host/etc/network/interfaces

Legend:
Removed from v.315  
changed lines
  Added in v.316

  ViewVC Help
Powered by ViewVC 1.1.26