diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-09-06 14:48:51 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-09-06 14:48:52 +0000 |
| commit | 682025c9e2fe834c697e96d219c54b70e641cbf8 (patch) | |
| tree | 394eac6c126fbad48c29438a4667a0bd9600400c /ansible/roles/haproxy | |
| parent | cecf0a3aef65462b6267306f97226ec9ff243937 (diff) | |
| parent | 89392f4f6ab45151703ccda7db722be8b1ac51ce (diff) | |
| download | kolla-682025c9e2fe834c697e96d219c54b70e641cbf8.tar.gz kolla-682025c9e2fe834c697e96d219c54b70e641cbf8.zip | |
Merge "Add gnocchi ansible role"
Diffstat (limited to 'ansible/roles/haproxy')
| -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 a4af2cafa..a0bb55f10 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -392,6 +392,22 @@ listen kibana_external {% endif %} {% endif %} +{% if enable_gnocchi | bool %} +listen gnocchi_api + bind {{ kolla_internal_vip_address }}:{{ gnocchi_api_port }} +{% for host in groups['gnocchi-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ gnocchi_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% if haproxy_enable_external_vip | bool %} + +listen gnocchi_api_external + bind {{ kolla_external_vip_address }}:{{ gnocchi_api_port }} {{ tls_bind_info }} +{% for host in groups['gnocchi-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ gnocchi_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% endif %} +{% endif %} + {% if enable_elasticsearch | bool %} listen elasticsearch option dontlog-normal |
