summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ha
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-12-04 09:33:48 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-12-08 19:36:47 +0800
commitf691dbc6f7b6d686012fce2f4f6ce59d4549d0fe (patch)
treee596b2a8e610a6b12bce4878cf2a3cdc0e929f20 /deploy/adapters/ansible/roles/ha
parent4d32ee565ecd829a2ec767cae6d8cd23df8e6263 (diff)
rabbitmq script refactor
JIRA: COMPASS-177 Change-Id: I66698ac27a974c9c375e8da9fcb91f49f89227ed Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ha')
-rw-r--r--deploy/adapters/ansible/roles/ha/templates/haproxy.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
index 3d76a5bc..0778bb13 100644
--- a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
+++ b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
@@ -38,6 +38,19 @@ listen proxy-mysql
{% endif %}
{% endfor %}
+listen proxy-rabbit
+ bind {{ internal_vip.ip }}:5672
+ bind {{ public_vip.ip }}:5672
+
+ option tcpka
+ option tcplog
+ timeout client 3h
+ timeout server 3h
+ balance source
+{% for host,ip in haproxy_hosts.items() %}
+ server {{ host }} {{ ip }}:5672 weight 1 check inter 2000 rise 2 fall 5
+{% endfor %}
+
listen proxy-glance_registry_cluster
bind {{ internal_vip.ip }}:9191
bind {{ public_vip.ip }}:9191