diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-10 06:52:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-10 06:52:35 +0000 |
commit | 01bf8315641200a49964d378d0ff88f43e7d8bf5 (patch) | |
tree | 1e64c6d17c126005bda0f7e8b963f5466f042a3c /deploy/adapters/ansible/roles/ha | |
parent | e408668e84f138f69317ff63e68b823dfe80188b (diff) | |
parent | f691dbc6f7b6d686012fce2f4f6ce59d4549d0fe (diff) |
Merge "rabbitmq script refactor"
Diffstat (limited to 'deploy/adapters/ansible/roles/ha')
-rw-r--r-- | deploy/adapters/ansible/roles/ha/templates/haproxy.cfg | 13 |
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 |