deployment: set role definition for 2nd node and copy network.yml from shared on sp2

we're getting closer i guess

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 13 years ago
parent 690b2d2a72
commit 7e51cd53af

@ -1190,9 +1190,13 @@ if "$PRO_EDITION" ; then
ngcp-network --host=$ROLE --set-interface=$INTERNAL_DEV ngcp-network --host=$ROLE --set-interface=$INTERNAL_DEV
ngcp-network --host=$ROLE --move-from=lo --move-to=$INTERNAL_DEV --type=ha_int ngcp-network --host=$ROLE --move-from=lo --move-to=$INTERNAL_DEV --type=ha_int
ngcp-network --host=$PEER --set-interface=eth1 --ip=$DEFAULT_IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int ngcp-network --host=$PEER --set-interface=eth1 --ip=$DEFAULT_IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int
ngcp-network --host=$PEER --role=proxy --role=lb --role=mgmt
cp /etc/ngcp-config/network.yml /mnt/glusterfs/shared_config/network.yml cp /etc/ngcp-config/network.yml /mnt/glusterfs/shared_config/network.yml
ngcpcfg build
else # ROLE = sp2
cp /mnt/glusterfs/shared_config/network.yml /etc/ngcp-config/network.yml
ngcpcfg build ngcpcfg build
fi fi
EOT EOT

Loading…
Cancel
Save