diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-07-19 11:57:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-07-19 11:57:47 +0000 |
| commit | d892f2a437edba9873e96b03cf62fd45422c818d (patch) | |
| tree | 1eced4709d37374e4c34b27664a73ede65c528b5 /ansible/roles/haproxy | |
| parent | d1993deb44bd41163237d815339c439ee1a5e2f5 (diff) | |
| parent | 30e3d904996685037b8bc02af752e2363300dc0b (diff) | |
| download | kolla-d892f2a437edba9873e96b03cf62fd45422c818d.tar.gz kolla-d892f2a437edba9873e96b03cf62fd45422c818d.zip | |
Merge "Add missing configuration files for ceilometer"
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 79915d778..08e432264 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -381,6 +381,22 @@ listen elasticsearch {% endfor %} {% endif %} +{% if enable_ceilometer | bool %} +listen ceilometer_api + bind {{ kolla_internal_vip_address }}:{{ ceilometer_api_port }} +{% for host in groups['ceilometer-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ ceilometer_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% if haproxy_enable_external_vip | bool %} + +listen ceilometer_api_external + bind {{ kolla_external_vip_address }}:{{ ceilometer_api_port }} {{ tls_bind_info }} +{% for host in groups['ceilometer-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ ceilometer_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 |
