diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 45190705d4..dfae9b9dd7 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -368,7 +368,9 @@ listen docker-candidate-registry 0.0.0.0:10054 listen modernpaste 0.0.0.0:10055 balance hdr(appserver) server modernpaste01 modernpaste01:80 check inter 10s rise 1 fall 2 +{% if env == "production" %} server modernpaste02 modernpaste02:80 check inter 10s rise 1 fall 2 +{% endif %} option httpchk GET / {% if inventory_hostname_short == 'proxy01' or inventory_hostname_short == 'proxy10' %}