diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 377fcfc5b6..b0c540f0c5 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -251,7 +251,11 @@ listen kerneltest 0.0.0.0:10038 listen koschei 0.0.0.0:10040 balance hdr(appserver) + {% if env == "stg" %} + server koschei-web01 koschei-web01:80 check inter 10s rise 1 fall 2 + {% else %} server koschei01 koschei01:80 check inter 10s rise 1 fall 2 + {% endif %} option httpchk GET /koschei/ listen autocloud 0.0.0.0:10041