diff options
Diffstat (limited to 'ansible/roles/haproxy')
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 11a334099..236af7d85 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -29,11 +29,15 @@ listen mariadb listen rabbitmq mode tcp option tcpka + bind {{ kolla_internal_address }}:{{ rabbitmq_port }} +{% for host in groups['rabbitmq'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ rabbitmq_port }} check inter 2000 rise 2 fall 5 +{% endfor %} - # TODO(SamYaple): Make rabbitmq port configurable throughout Ansible - bind {{ kolla_internal_address }}:5672 +listen rabbitmq_management + bind {{ kolla_internal_address }}:{{ rabbitmq_management_port }} {% for host in groups['rabbitmq'] %} - server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:5672 check inter 2000 rise 2 fall 5 + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ rabbitmq_management_port }} check inter 2000 rise 2 fall 5 {% endfor %} listen keystone_public |
