From b5d33a6199b9b98503c9a03c6c6f8330a23a4e5b Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 15 Apr 2016 01:21:08 +0200 Subject: [PATCH] Point haproxy at koschei-web in stg --- roles/haproxy/templates/haproxy.cfg | 4 ++++ 1 file changed, 4 insertions(+) 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