summaryrefslogtreecommitdiffstats
path: root/roles/haproxy
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2017-02-13 20:58:26 +0000
committerKevin Fenzi <kevin@scrye.com>2017-02-13 20:58:26 +0000
commit66d866ea3a421709b0b63eb4da3da98d1150f57d (patch)
tree7c2f92654c87fd03a535cba6dc5ed97c50715d73 /roles/haproxy
parent9bd7c0fb117e3cd2eba54e629084ccbcece056c0 (diff)
downloadansible-66d866ea3a421709b0b63eb4da3da98d1150f57d.tar.gz
ansible-66d866ea3a421709b0b63eb4da3da98d1150f57d.tar.xz
ansible-66d866ea3a421709b0b63eb4da3da98d1150f57d.zip
and switch haproxy to use mirrorlist-proxy group
Diffstat (limited to 'roles/haproxy')
-rw-r--r--roles/haproxy/templates/haproxy.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg
index cd479a2d0..b6e0009a4 100644
--- a/roles/haproxy/templates/haproxy.cfg
+++ b/roles/haproxy/templates/haproxy.cfg
@@ -51,7 +51,7 @@ listen mirror-lists 0.0.0.0:10002
server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup
{% endif %}
{% if env == "production" %}
-{% if inventory_hostname_short == 'proxy02' or inventory_hostname_short == 'proxy05' %}
+{% if 'mirrorlist-proxy' in group_names %}
server mirrorlist-local1 localhost:18081 check inter 1s rise 2 fall 3 weight 100
server mirrorlist-local2 localhost:18082 check inter 1s rise 2 fall 3 weight 100
server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup