diff options
| author | Kevin Fenzi <kevin@scrye.com> | 2017-02-08 21:18:57 +0000 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2017-02-08 21:18:57 +0000 |
| commit | 74bcf7d2a94a292cc2a6956fafb9f818310e6a08 (patch) | |
| tree | 45eacf55769b4ab17e981169e997e5bf793cb521 /roles/haproxy/templates | |
| parent | 69e6e128254b03f6ecfd45d9060bb995fa93b543 (diff) | |
| download | ansible-74bcf7d2a94a292cc2a6956fafb9f818310e6a08.tar.gz ansible-74bcf7d2a94a292cc2a6956fafb9f818310e6a08.tar.xz ansible-74bcf7d2a94a292cc2a6956fafb9f818310e6a08.zip | |
fix mirrorlist-phx2 in haproxy
Diffstat (limited to 'roles/haproxy/templates')
| -rw-r--r-- | roles/haproxy/templates/haproxy.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 9c590f524..3cfa76584 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -48,18 +48,20 @@ listen mirror-lists 0.0.0.0:10002 {% if env == "staging" %} server mirrorlist-local1 localhost:18081 check inter 5s rise 2 fall 3 weight 100 server mirrorlist-local2 localhost:18082 check inter 5s rise 2 fall 3 weight 100 + server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup {% endif %} - server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 {% if env == "production" %} {% if inventory_hostname_short == 'proxy02' %} server mirrorlist-local1 localhost:18081 check inter 5s rise 2 fall 3 weight 100 server mirrorlist-local2 localhost:18082 check inter 5s rise 2 fall 3 weight 100 + server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup server mirrorlist-dedicatedsolutions mirrorlist-dedicatedsolutions:80 check inter 5s rise 2 fall 3 backup server mirrorlist-host1plus mirrorlist-host1plus:80 check inter 5s rise 2 fall 3 backup server mirrorlist-ibiblio mirrorlist-ibiblio:80 check inter 5s rise 2 fall 3 backup server mirrorlist-ibiblio02 mirrorlist-ibiblio02:80 check inter 5s rise 2 fall 3 backup server mirrorlist-osuosl mirrorlist-osuosl:80 check inter 5s rise 2 fall 3 backup {% else %} + server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 server mirrorlist-dedicatedsolutions mirrorlist-dedicatedsolutions:80 check inter 5s rise 2 fall 3 server mirrorlist-host1plus mirrorlist-host1plus:80 check inter 5s rise 2 fall 3 server mirrorlist-ibiblio mirrorlist-ibiblio:80 check inter 5s rise 2 fall 3 |
