diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index f69703ce49..2452c67b94 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -493,6 +493,19 @@ frontend zabbix-frontend bind 0.0.0.0:10068 default_backend zabbix-backend +backend zabbix-backend + balance hdr(appserver) + server zabbix01.stg zabbix01.stg:80 check inter 10s rise 1 fall 2 +# option httpchk GET / +# http-check expect status 200,401,302 +{% endif %} + + +{% if env == "production" %} +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