diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-07-23 12:35:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-07-23 12:35:53 +0000 |
| commit | 0ff90a6f10494f9f33d665a3367dfaf0486b94df (patch) | |
| tree | 6956a86f88625acc44a545308255ea28391114f4 /ansible/roles/haproxy | |
| parent | db4e2875b3e59a4814b7574a294f1a51baac4855 (diff) | |
| parent | c3a6aa684a1f35bd920e15c9d5d074149065cd16 (diff) | |
| download | kolla-0ff90a6f10494f9f33d665a3367dfaf0486b94df.tar.gz kolla-0ff90a6f10494f9f33d665a3367dfaf0486b94df.zip | |
Merge "Add Watcher ansible roles and templates"
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 08e432264..c808a3da8 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -332,6 +332,22 @@ listen magnum_api_external {% endif %} {% endif %} +{% if enable_watcher | bool and enable_ceilometer | bool %} +listen watcher_api + bind {{ kolla_internal_vip_address }}:{{ watcher_api_port }} +{% for host in groups['watcher-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ watcher_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% if haproxy_enable_external_vip | bool %} + +listen watcher_api_external + bind {{ kolla_external_vip_address }}:{{ watcher_api_port }} {{ tls_bind_info }} +{% for host in groups['watcher-api'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ watcher_api_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% endif %} +{% endif %} + {% if enable_ceph | bool and enable_ceph_rgw | bool %} listen radosgw bind {{ kolla_internal_vip_address }}:{{ rgw_port }} |
