aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorliyingjun <yingjun.li@kylin-cloud.com>2016-10-18 16:36:05 +0800
committerLi Yingjun <yingjun.li@kylin-cloud.com>2016-10-19 05:57:53 +0000
commitec57f589c473daaf69daca79f3cece18abd4d300 (patch)
tree071c7a9be4f39fd8efc7405d35ab57a895d13654 /ansible/roles/haproxy
parent1fe4513623eaa56f50744f8d5c000057d60a8e6a (diff)
downloadkolla-ec57f589c473daaf69daca79f3cece18abd4d300.tar.gz
kolla-ec57f589c473daaf69daca79f3cece18abd4d300.zip
Support searchlight ansible role
Searchlight is an Openstack search and index service, this patch implements the ansible role for searchlight. Implement blueprint: support-searchlight-deployment Change-Id: Ibf42d5b259a6740d6596041f896e1009657b7388
Diffstat (limited to 'ansible/roles/haproxy')
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index 4746f34ba..cc7d6fc3e 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -417,6 +417,21 @@ listen sahara_api_external
{% endif %}
{% endif %}
+{% if enable_searchlight | bool %}
+listen searchlight_api
+ bind {{ kolla_internal_vip_address }}:{{ searchlight_api_port }}
+{% for host in groups['searchlight-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ searchlight_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% if haproxy_enable_external_vip | bool %}
+
+listen searchlight_api_external
+ bind {{ kolla_external_vip_address }}:{{ searchlight_api_port }} {{ tls_bind_info }}
+{% for host in groups['searchlight-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ searchlight_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% endif %}
+{% endif %}
{% if enable_ceph | bool and enable_ceph_rgw | bool %}
listen radosgw