diff options
Diffstat (limited to 'ansible/roles/haproxy/templates/haproxy.cfg.j2')
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index c58680490..f075a9236 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -453,6 +453,22 @@ listen elasticsearch {% endfor %} {% endif %} +{% if enable_barbican | bool %} +listen barbican_api + bind {{ kolla_internal_vip_address }}:{{ barbican_api_port }} +{% for host in groups['barbican-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ barbican_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% if haproxy_enable_external_vip | bool %} + +listen barbican_api_external + bind {{ kolla_external_vip_address }}:{{ barbican_api_port }} {{ tls_bind_info }} +{% for host in groups['barbican-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ barbican_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% endif %} +{% endif %} + {% if enable_ceilometer | bool %} listen ceilometer_api bind {{ kolla_internal_vip_address }}:{{ ceilometer_api_port }} |
