diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 309c6d44bfad5c1210fdbe79b130c7933cbb4b39..b630f935bf275a18aaf8628cbc626cf4dd665d85 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -45,6 +45,7 @@ listen rabbitmq_management server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_management_port }} check inter 2000 rise 2 fall 5 {% endfor %} +{% if enable_outward_rabbitmq | bool %} listen outward_rabbitmq_management bind {{ kolla_internal_vip_address }}:{{ outward_rabbitmq_management_port }} {% for host in groups['outward-rabbitmq'] %} @@ -63,6 +64,7 @@ listen outward_rabbitmq_external {% endfor %} {% endif %} {% endif %} +{% endif %} {% if enable_mongodb | bool %} listen mongodb