diff options
author | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2017-03-14 13:51:43 +0100 |
---|---|---|
committer | Chaoyi Huang <joehuang@huawei.com> | 2017-03-17 06:01:27 +0000 |
commit | f8ad193d3ff836fbbce1f93733426b205eab6d7c (patch) | |
tree | e5a64f505686230961530ad15c0eef091680639a | |
parent | 48324a6602cfcacbc260e6cc2c61ff22116cbeec (diff) |
Use the correct bind host for haproxy config
Change-Id: I5e8bd6be29b67b22afcf8fb6e332c1058f8f10d9
Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
(cherry picked from commit dd5f7c1ddf1a73013214fcc35b3c048e553bcc5f)
-rwxr-xr-x | tools/kingbird/install_kingbird.sh | 4 |
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 |