From fc9c16987873c455af3b1b50dc6356f7492ce372 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 15 Dec 2016 00:08:07 +0000 Subject: [PATCH] Add secondary kojis to haproxy Signed-off-by: Patrick Uiterwijk --- roles/haproxy/templates/haproxy.cfg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index e16a58c7c0..eac30d46cd 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -379,6 +379,23 @@ listen src 0.0.0.0:10057 {% endif %} +{% if env == "production" and 'phx2' in inventory_hostname %} +listen ppckoji 0.0.0.0:10058 + balance hdr(appserver) + server ppc-koji01.ppc.fedoraproject.org ppc-koji01.ppc.fedoraproject.org:80 check inter 10s rise 1 fall 2 + option httpchk GET / + +listen s390koji 0.0.0.0:10059 + balance hdr(appserver) + server s390-koji01.s390.fedoraproject.org s390-koji01.s390.fedoraproject.org:80 check inter 10s rise 1 fall 2 + option httpchk GET / + +listen armkoji 0.0.0.0:10060 + balance hdr(appserver) + server arm-koji01.qa.fedoraproject.org arm-koji01.qa.fedoraproject.org:80 check inter 10s rise 1 fall 2 + option httpchk GET / + +{% endif %} # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting