aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-11 04:02:34 +0000
committerGerrit Code Review <review@openstack.org>2016-09-11 04:02:34 +0000
commitaef69ae2c25e2b2227a6ef14a47973c43aaa33c1 (patch)
tree57ebce5e1d4f904fdff84b29869b8f04574b0c81
parent5070d9c2b25cef58cc54a115640be6bd07d5994b (diff)
parentd8c70ecadc80886ff3990a216a52cabf79659c6d (diff)
downloadkolla-aef69ae2c25e2b2227a6ef14a47973c43aaa33c1.tar.gz
kolla-aef69ae2c25e2b2227a6ef14a47973c43aaa33c1.zip
Merge "Adding manila endpoints to 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 c58680490..b4e640b49 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -337,6 +337,22 @@ listen murano_api_external
{% endif %}
{% endif %}
+{% if enable_manila | bool %}
+listen manila_api
+ bind {{ kolla_internal_vip_address }}:{{ manila_api_port }}
+{% for host in groups['manila-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ manila_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% if haproxy_enable_external_vip | bool %}
+
+listen manila_api_external
+ bind {{ kolla_external_vip_address }}:{{ manila_api_port }} {{ tls_bind_info }}
+{% for host in groups['manila-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ manila_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% endif %}
+{% endif %}
+
{% if enable_magnum | bool %}
listen magnum_api
bind {{ kolla_internal_vip_address }}:{{ magnum_api_port }}