deployment: store factory settings of network.yml before running ngcp-network, update file on glusterfs share

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 13 years ago
parent 999edc5775
commit 06ebe8f8cf

@ -1181,6 +1181,8 @@ if "$PRO_EDITION" ; then
exit 0
fi
cp /etc/ngcp-config/network.yml /etc/ngcp-config/network.yml.factory_default
ngcp-network --set-interface=lo --set-interface=$DEFAULT_INSTALL_DEV --set-interface=$INTERNAL_DEV
ngcp-network --peer=$PEER
ngcp-network --host=$PEER --peer=$ROLE --set-interface=lo
@ -1188,6 +1190,8 @@ if "$PRO_EDITION" ; then
ngcp-network --move-from=lo --move-to=$INTERNAL_DEV --type=ha_int
ngcp-network --set-interface=eth1 --host=$PEER --ip=$DEFAULT_IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int
cp /etc/ngcp-config/network.yml /mnt/glusterfs/shared_config/network.yml
ngcpcfg build
EOT
fi

Loading…
Cancel
Save