Remove nm earlier
parent
9a436788c1
commit
236c10a48c
|
@ -11,6 +11,11 @@ if [ -z "$play_host" -o -z "$node_name" -o -z "$int_ip" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Configure network
|
||||||
|
ssh root@$play_host <<EOF
|
||||||
|
apt-get purge -y network-manager
|
||||||
|
EOF
|
||||||
|
|
||||||
### Rename 1G interfaces to eth1g[1,2,3...], 10G to eth10g[1,2,3...]
|
### Rename 1G interfaces to eth1g[1,2,3...], 10G to eth10g[1,2,3...]
|
||||||
ssh root@$play_host '
|
ssh root@$play_host '
|
||||||
set -e -x
|
set -e -x
|
||||||
|
@ -84,8 +89,6 @@ DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" \
|
||||||
-o Dpkg::Options::="--force-confold" install -y \
|
-o Dpkg::Options::="--force-confold" install -y \
|
||||||
bridge-utils resolvconf
|
bridge-utils resolvconf
|
||||||
|
|
||||||
apt-get purge -y network-manager
|
|
||||||
|
|
||||||
chmod 755 /etc/rc.local
|
chmod 755 /etc/rc.local
|
||||||
/etc/rc.local
|
/etc/rc.local
|
||||||
systemctl enable rc-local
|
systemctl enable rc-local
|
||||||
|
|
6
run.sh
6
run.sh
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
set -e -x
|
set -e -x
|
||||||
|
|
||||||
|
play_host=172.31.1.22 node_name=ivy3 int_ip=192.168.5.22 ./general.sh
|
||||||
|
play_host=172.31.1.22 node_name=ivy3 int_ip=192.168.5.22 ./opennebula.sh
|
||||||
|
play_host=172.31.1.22 node_name=ivy3 int_ip=192.168.5.22 ./ceph.sh
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
||||||
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./general.sh
|
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./general.sh
|
||||||
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./opennebula.sh
|
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./opennebula.sh
|
||||||
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./ceph.sh
|
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./ceph.sh
|
||||||
|
|
Loading…
Reference in New Issue