From 450230aa75c55d5c4c35b809f85aa95b53fa914c Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Wed, 22 Aug 2018 17:02:17 +0200 Subject: [PATCH] Staging still does use docker in the regsitry hostname Signed-off-by: Clement Verna --- roles/haproxy/templates/haproxy.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 71b0094554..4a34046b22 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -451,7 +451,12 @@ frontend docker-candidate-registry-frontend backend docker-candidate-registry-backend balance hdr(appserver) +{% if env == "staging" %} + server docker-candidate-registry01 docker-candidate-registry01:5000 check inter 10s rise 1 fall 2 +{% endif %} +{% if env == "production" %} server oci-candidate-registry01 oci-candidate-registry01:5000 check inter 10s rise 1 fall 2 +{% endif %} frontend modernpaste-frontend bind 0.0.0.0:10055