aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorBartłomiej Daca <bartek.daca@gmail.com>2016-09-08 19:15:49 +0200
committerBartłomiej Daca <bartek.daca@gmail.com>2016-09-08 19:15:49 +0200
commitd8c70ecadc80886ff3990a216a52cabf79659c6d (patch)
tree6b8443426ad7b25451887dfba4867622ea852a1a /ansible
parenta42226556824ea62bda969b2eb24001f4e5e6122 (diff)
downloadkolla-d8c70ecadc80886ff3990a216a52cabf79659c6d.tar.gz
kolla-d8c70ecadc80886ff3990a216a52cabf79659c6d.zip
Adding manila endpoints to HAProxy
Manila endpoints (internal and external) should be created in haproxy configuration just like other services. Change-Id: I5dbc6ca94a118b9655e1c5a87b0a5163153ab5af Closes-Bug: #1621556
Diffstat (limited to 'ansible')
-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 }}