summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-14 13:51:43 +0100
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-14 13:51:43 +0100
commitdd5f7c1ddf1a73013214fcc35b3c048e553bcc5f (patch)
treee5a64f505686230961530ad15c0eef091680639a /tools
parent8c3744ff8b80f9aede71af8938cd7732b117f8cb (diff)
Use the correct bind host for haproxy config
Change-Id: I5e8bd6be29b67b22afcf8fb6e332c1058f8f10d9 Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kingbird/install_kingbird.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh
index dd166e9..63d84c4 100755
--- a/tools/kingbird/install_kingbird.sh
+++ b/tools/kingbird/install_kingbird.sh
@@ -185,9 +185,11 @@ listen kingbird-api
option http-buffer-request
timeout server 660s
timeout http-request 10s
- server node-4 192.168.0.4:8118 check inter 10s fastinter 2s downinter 3s rise 3 fall 3
+ server node-4 ${bind_host}:8118 check inter 10s fastinter 2s downinter 3s rise 3 fall 3
EOF
+service haproxy restart
+
# Configure iptables
iptables -I INPUT -p tcp -m multiport --dports 8118 -m comment --comment "410 kingbird" -j ACCEPT