5 |
. ./0-ganeti.sh |
. ./0-ganeti.sh |
6 |
|
|
7 |
ssh_lxc cat /var/lib/lxc/$host/config | grep ipv4 | tee $host/ipv4 |
ssh_lxc cat /var/lib/lxc/$host/config | grep ipv4 | tee $host/ipv4 |
8 |
public_ip=`grep 193.198 rt/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'` |
public_ip=`grep 193.198 $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'` |
9 |
local_ip=` grep 10.60 rt/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'` |
local_ip=` grep 10.60 $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'` |
10 |
|
|
11 |
tee /tmp/network-interfaces-$host << __INTERFACES__ |
tee /tmp/network-interfaces-$host << __INTERFACES__ |
12 |
auto eth0 eth1 lo |
auto eth0 eth1 lo |