fix bug with hard coded ethernet in ha.cf on lvs nodes
authorAndy Witter <awitter@georgialibraries.org>
Tue, 3 Dec 2019 07:55:49 +0000 (02:55 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Tue, 3 Dec 2019 07:55:49 +0000 (02:55 -0500)
templates/lvs/ha.cf
templates/setup.sh

index 2a93703..fef7b52 100755 (executable)
@@ -5,7 +5,7 @@ warntime 2
 initdead 10
 #baud 19200
 #serial /dev/ttyS1
-bcast eth0 #This must be set to the private interface.
+bcast Private_Interface #This must be set to the private interface.
 auto_failback on
 node    FIRST_LVS_SERVER
 node    SECOND_LVS_SERVER
index c3b48cf..6f3f354 100755 (executable)
@@ -741,6 +741,7 @@ then
     sed -i "s/Primary_Interface/${PRIMARY_INTERFACE}/g" /etc/netplan/config.yaml
     sed -i "s/Private_Interface/${SECOND_PHYSICAL_INTERFACE}/g" /etc/network/interfaces
     sed -i "s/Private_Interface/${SECOND_PHYSICAL_INTERFACE}/g" /etc/netplan/config.yaml
+    sed -i "s/Private_Interface/${SECOND_PHYSICAL_INTERFACE}/g" /etc/ha.cf
     sed -i "s/Primary_Interface/${PRIMARY_INTERFACE}/g" /etc/ha.d/haresources
     sed -i "s/Private_Interface/${SECOND_PHYSICAL_INTERFACE}/g" /etc/ha.d/haresources
     # configure firewall for lvs servers