From 15df6520dc5a82891ec92b5fd14fcc0fd4fb4ff8 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Tue, 3 Dec 2019 02:55:49 -0500 Subject: [PATCH] fix bug with hard coded ethernet in ha.cf on lvs nodes --- templates/lvs/ha.cf | 2 +- templates/setup.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/lvs/ha.cf b/templates/lvs/ha.cf index 2a93703..fef7b52 100755 --- a/templates/lvs/ha.cf +++ b/templates/lvs/ha.cf @@ -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 diff --git a/templates/setup.sh b/templates/setup.sh index c3b48cf..6f3f354 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -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 -- 2.11.0