From af8f9531a9c9708c09b71f2fa62faffa2f4d43ca Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 15 Nov 2023 11:14:27 -0800 Subject: [PATCH] haproxy: fix issue with non iad2 proxies Turns out zabbix is only in iad2, so we need to not set it up on non iad2 proxies. Signed-off-by: Kevin Fenzi --- roles/haproxy/templates/haproxy.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 65ca505ac1..69b0e826a9 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -478,6 +478,7 @@ backend fedmsg-raw-zmq-inbound-backend timeout connect 86400000 server busgateway01 busgateway01:9941 weight 1 maxconn 16384 +{% if 'iad2' in inventory_hostname %} frontend zabbix-frontend bind 0.0.0.0:10068 default_backend zabbix-backend @@ -485,4 +486,4 @@ frontend zabbix-frontend backend zabbix-backend balance hdr(appserver) server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2 - +{% endif %}