From f8ad193d3ff836fbbce1f93733426b205eab6d7c Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Tue, 14 Mar 2017 13:51:43 +0100 Subject: Use the correct bind host for haproxy config Change-Id: I5e8bd6be29b67b22afcf8fb6e332c1058f8f10d9 Signed-off-by: Dimitri Mazmanov (cherry picked from commit dd5f7c1ddf1a73013214fcc35b3c048e553bcc5f) --- tools/kingbird/install_kingbird.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') 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 -- cgit 1.2.3-korg