From e77bd253f6159636e48707a3a0618df76bffc9f2 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 2 Mar 2017 01:26:16 +0000 Subject: [PATCH] add registery02 to haproxy --- 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 d0888a435c..567f36fb74 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -303,6 +303,9 @@ listen osbs 0.0.0.0:10047 listen docker-registry 0.0.0.0:10048 balance hdr(appserver) server docker-registry01 docker-registry01:5000 check inter 10s rise 1 fall 2 +{% if env == "staging" %} + server docker-registry02 docker-registry02:5000 check inter 10s rise 1 fall 2 +{% endif %} {% if env == "staging" %} listen retrace 0.0.0.0:10049