diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 6dc88b7cd1..9791c20b96 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -369,8 +369,10 @@ backend src-backend balance hdr(appserver) {% if env == "staging" %} server pkgs01 pkgs01:80 check inter 10s rise 1 fall 2 -{% else %} +{% elif datacenter == 'phx2' %} server pkgs02 pkgs02:80 check inter 10s rise 1 fall 2 +{% elif datacenter == 'iad2' %} + server pkgs01 pkgs01:80 check inter 10s rise 1 fall 2 {% endif %} option httpchk GET /