diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2016-09-23 09:01:37 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-09-24 02:56:58 +0000 |
| commit | 23aae451632b76a0fa769c33be2a1db2a4141d8c (patch) | |
| tree | 33fb1df5f681a6cf57e272bd9ba3596cd654abe0 | |
| parent | 911dfe4ef7c3cfd012ce3887ec491b8ee4581730 (diff) | |
| download | kolla-23aae451632b76a0fa769c33be2a1db2a4141d8c.tar.gz kolla-23aae451632b76a0fa769c33be2a1db2a4141d8c.zip | |
Add aodh-api to haproxy.cfg file
TrivialFix
Change-Id: Iaca1aae8643f4155a862018430bfb0593d6a39e2
| -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 f6eb60a3e..a0594e11e 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -517,6 +517,22 @@ listen ceilometer_api_external {% endif %} {% endif %} +{% if enable_aodh | bool %} +listen aodh_api + bind {{ kolla_internal_vip_address }}:{{ aodh_api_port }} +{% for host in groups['aodh-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ aodh_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% if haproxy_enable_external_vip | bool %} + +listen aodh_api_external + bind {{ kolla_external_vip_address }}:{{ aodh_api_port }} {{ tls_bind_info }} +{% for host in groups['aodh-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ aodh_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% endif %} +{% endif %} + # (NOTE): This defaults section deletes forwardfor as recomended by: # https://marc.info/?l=haproxy&m=141684110710132&w=1 |
