From b87efec9a07ada039bf7a7872129d5b0917a99fd Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Wed, 11 Apr 2018 21:24:58 +0000 Subject: [PATCH] make this phx2 only Signed-off-by: Ricky Elrod --- roles/haproxy/templates/haproxy.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 7ca6600eda..2fd8f4b380 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -236,6 +236,8 @@ backend hubs-backend {% endif %} option httpchk GET / + +{% if 'phx2' in inventory_hostname and env == 'production' %} frontend awx-frontend bind 0.0.0.0:10069 default_backend awx-backend @@ -244,6 +246,7 @@ backend awx-backend balance hdr(appserver) server batcomputer01 batcomputer01:80 check inter 10s rise 1 fall 2 option httpchk GET / +{% endif %} # IMPORTANT: 10023-10026 will NOT work because of selinux policies