From 7e64e136049d895aa599897578d038e6aeb9e5b4 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 5 Apr 2016 17:02:10 +0000 Subject: [PATCH] Add haproxy entries for osbs, docker-registry, retrace and faf Signed-off-by: Patrick Uiterwijk --- roles/haproxy/templates/haproxy.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index b52a3eed7e..69f5c57b3d 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -295,6 +295,30 @@ listen zanata2fedmsg 0.0.0.0:10046 balance hdr(appserver) server zanata2fedmsg01 zanata2fedmsg01:80 check inter 10s rise 1 fall 2 +{% if env == "production" %} +listen osbs 0.0.0.0:10047 + balance hdr(appserver) + server osbs-master01 osbs-master01:80 check inter 10s rise 1 fall 2 +{% endif %} + +{% if env == "production" %} +listen docker-registry 0.0.0.0:10048 + balance hdr(appserver) + server docker-registry01 docker-registry01:80 check inter 10s rise 1 fall 2 +{% endif %} + +{% if env == "production" %} +listen retrace 0.0.0.0:10049 + balance hdr(appserver) + server retrace01 retrace01:80 check inter 10s rise 1 fall 2 +{% endif %} + +{% if env == "production" %} +listen faf 0.0.0.0:10050 + balance hdr(appserver) + server faf01 faf01:80 check inter 10s rise 1 fall 2 +{% 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