From 78106fe297d0ae8896f04aabd76d7bc3c35efbf7 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 4 Mar 2017 19:34:08 +0000 Subject: [PATCH] modernpaste02 only in prod --- roles/haproxy/templates/haproxy.cfg | 2 ++ 1 file changed, 2 insertions(+) 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' %}