From e92d630821fbbdc36773b2e771d8f641a100706e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 26 May 2020 19:37:13 -0700 Subject: [PATCH] iad2: pkgs01 in iad2, not pkgs02 Signed-off-by: Kevin Fenzi --- roles/haproxy/templates/haproxy.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 /