aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-15 16:15:20 +0000
committerGerrit Code Review <review@openstack.org>2016-11-15 16:15:20 +0000
commitc51cf93efd2c03e9582290af42fd82ef9cccf976 (patch)
treec7433daf6168c97b6e9fe4bb0f287d71694cc15d /ansible/roles/haproxy
parent870616f8858556e4dc5abb3838259d12c14e0263 (diff)
parent2a3df8db327f61273fa9e973d297f19b3740c0e0 (diff)
downloadkolla-c51cf93efd2c03e9582290af42fd82ef9cccf976.tar.gz
kolla-c51cf93efd2c03e9582290af42fd82ef9cccf976.zip
Merge "Ansible-ize OpenStack Designate"
Diffstat (limited to 'ansible/roles/haproxy')
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j216
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 89b7997c6..23244582d 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -587,6 +587,22 @@ listen congress_api_external
{% endif %}
{% endif %}
+{% if enable_designate | bool %}
+listen designate_api
+ bind {{ kolla_internal_vip_address }}:{{ designate_api_port }}
+{% for host in groups['designate-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ designate_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% if haproxy_enable_external_vip | bool %}
+
+listen designate_api_external
+ bind {{ kolla_external_vip_address }}:{{ designate_api_port }} {{ tls_bind_info }}
+{% for host in groups['designate-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ designate_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% endif %}
+{% endif %}
+
{% if enable_mistral | bool %}
listen mistral_api
bind {{ kolla_internal_vip_address }}:{{ mistral_api_port }}