diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index f1be02321e..7cb6c4b409 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -488,12 +488,25 @@ backend fedmsg-raw-zmq-inbound-backend timeout connect 86400000 server busgateway01 busgateway01:9941 weight 1 maxconn 16384 +{% if env == "staging" %} frontend zabbix-frontend bind 0.0.0.0:10068 default_backend zabbix-backend backend zabbix-backend balance hdr(appserver) - server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2 + server zabbix.stg zabbix.stg:80 check inter 10s rise 1 fall 2 # option httpchk GET / # http-check expect status 200,401,302 +{% if env == "production" %} +frontend zabbix-frontend + bind 0.0.0.0:10068 + default_backend zabbix-backend + +backend zabbix-backend + balance hdr(appserver) + server zabbix zabbix:80 check inter 10s rise 1 fall 2 +# option httpchk GET / +# http-check expect status 200,401,302 +{% endif %} +