deployment: make sure eth1 of sp2 is pre-configured

related to svn r11766

This should fix the MySQL replication issue reported by Andrew (thanks!)

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 13 years ago
parent e55990a0a2
commit 9beb75d685

@ -1280,6 +1280,10 @@ if "$PRO_EDITION" ; then
ngcp-network --host=$PEER --peer=$THIS_HOST
ngcp-network --host=$PEER --set-interface=lo --shared-ip=none --shared-ipv6=none
ngcp-network --host=$PEER --set-interface=lo --ipv6='::1' --ip=auto --netmask=auto --hwaddr=auto
# needed to make sure MySQL setup is OK for first node until second node is set up
ngcp-network --host=$PEER --set-interface=$INTERNAL_DEV --ip=$IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int
ngcp-network --host=$PEER --role=proxy --role=lb --role=mgmt
ngcp-network --host=$PEER --set-interface=lo --type=sip_int --type=web_ext --type=sip_ext \
--type=rtp_ext --type=ssh_ext --type=mon_ext --type=web_int
@ -1292,7 +1296,10 @@ if "$PRO_EDITION" ; then
else # ROLE = sp2
ngcpcfg pull
ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --ip=auto --netmask=auto --hwaddr=auto
# finalize the --ip=$IP2 from previous run on first node
ngcp-network --host=$THIS_HOST --set-interface=$INTERNAL_DEV --ip=auto --netmask=auto --hwaddr=auto --type=ha_int
ngcpcfg commit "deployed /etc/ngcp-config/network.yml on $ROLE"
ngcpcfg push --shared-only
ssh-keyscan $PEER >> ~/.ssh/known_hosts

Loading…
Cancel
Save