Remove nm earlier

master
Vitaliy Filippov 2020-06-18 20:29:57 +03:00
parent 9a436788c1
commit 236c10a48c
2 changed files with 11 additions and 2 deletions

View File

@ -11,6 +11,11 @@ if [ -z "$play_host" -o -z "$node_name" -o -z "$int_ip" ]; then
exit 1
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...]
ssh root@$play_host '
set -e -x
@ -84,8 +89,6 @@ DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" install -y \
bridge-utils resolvconf
apt-get purge -y network-manager
chmod 755 /etc/rc.local
/etc/rc.local
systemctl enable rc-local

6
run.sh
View File

@ -2,6 +2,12 @@
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 ./opennebula.sh
play_host=172.31.1.20 node_name=ivy1 int_ip=192.168.5.20 ./ceph.sh