aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-28 10:40:07 +0000
committerGerrit Code Review <review@openstack.org>2015-09-28 10:40:07 +0000
commitfea0f07c089683c9a1061833fa2533f994fe9198 (patch)
tree961fdb568d95796b8134d10f28230627c0048aca
parentb283066e299567ac4af7e13398ccf14ff20bfdad (diff)
parentae308571440c4d803dce7cf24afe48d51872ed42 (diff)
downloadkolla-fea0f07c089683c9a1061833fa2533f994fe9198.tar.gz
kolla-fea0f07c089683c9a1061833fa2533f994fe9198.zip
Merge "bind haproxy to single interface"
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j22
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 /