From 6e68371bf3ecafc55a1bae520c54ddb8c7726b8c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 13 Dec 2016 01:23:46 +0000 Subject: [PATCH] haproxy cannot have koji defined in non phx2 without vpn --- roles/haproxy/templates/haproxy.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 49fbdca0f5..e16a58c7c0 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -360,12 +360,13 @@ listen modernpaste 0.0.0.0:10055 {% endif %} +{% if inventory_hostname_short == 'proxy01' or inventory_hostname_short == 'proxy10' %} + listen koji 0.0.0.0:10056 balance hdr(appserver) server koji01 koji01:80 check inter 10s rise 1 fall 2 option httpchk GET / -{% if inventory_hostname_short == 'proxy01' or inventory_hostname_short == 'proxy10' %} # Only enable this on proxy01 or proxy10 listen src 0.0.0.0:10057 balance hdr(appserver)