From 7aec77ff60ed48f31eb60f868aae5394789d3115 Mon Sep 17 00:00:00 2001 From: Sander van Vugt Date: Tue, 10 Nov 2020 16:01:10 +0100 Subject: [PATCH] bugfix in setup-lb.sh --- setup-lb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-lb.sh b/setup-lb.sh index d0b96b2..64952f8 100644 --- a/setup-lb.sh +++ b/setup-lb.sh @@ -80,8 +80,8 @@ scp keepalived-control3.conf control3:/etc/keepalived/keepalived.conf ### rewriting haproxy.cfg with site specific IP addresses sed -i s/server\ control1\ 1.1.1.1\:6443\ check/server\ control1\ $CONTROL1_IP\:6443\ check/ haproxy.cfg -sed -i s/server\ control1\ 1.1.1.2\:6443\ check/server\ control2\ $CONTROL2_IP\:6443\ check/ haproxy.cfg -sed -i s/server\ control1\ 1.1.1.3\:6443\ check/server\ control3\ $CONTROL3_IP\:6443\ check/ haproxy.cfg +sed -i s/server\ control2\ 1.1.1.2\:6443\ check/server\ control2\ $CONTROL2_IP\:6443\ check/ haproxy.cfg +sed -i s/server\ control3\ 1.1.1.3\:6443\ check/server\ control3\ $CONTROL3_IP\:6443\ check/ haproxy.cfg # copy haproxy.cfg to destinations cp haproxy.cfg /etc/haproxy/