diff options
| author | Sam Yaple <sam@yaple.net> | 2015-09-27 08:52:21 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2015-09-27 09:17:51 +0000 |
| commit | ae308571440c4d803dce7cf24afe48d51872ed42 (patch) | |
| tree | bfc9a0f464f26e752be43a30b1bb4a61da66f09d | |
| parent | 9f99d63ea27f51268d1dea727007dee2f5f5a84c (diff) | |
| download | kolla-ae308571440c4d803dce7cf24afe48d51872ed42.tar.gz kolla-ae308571440c4d803dce7cf24afe48d51872ed42.zip | |
bind haproxy to single interface
Change-Id: I0c9d85ec7da98d32b94d1e61538fe20333536d39
Closes-Bug: #1500159
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index da43239da..637cb1ce1 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -14,7 +14,7 @@ defaults timeout server 1m timeout check 10s -listen stats :{{ haproxy_stats_port }} +listen stats {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ haproxy_stats_port }} mode http stats enable stats uri / |
