From b33f3129643937bd0a25d0b8f292abb6b8ebc642 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 31 Dec 2024 16:15:19 +0100 Subject: [PATCH] updated haproxy state --- states/haproxy/templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states/haproxy/templates/haproxy.cfg.j2 b/states/haproxy/templates/haproxy.cfg.j2 index fdb677f..e609509 100644 --- a/states/haproxy/templates/haproxy.cfg.j2 +++ b/states/haproxy/templates/haproxy.cfg.j2 @@ -1,5 +1,5 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} -{%- from "haproxy/map.jinja" import haproxy,fqdn,country with context %} +{%- from "haproxy/map.jinja" import haproxy,fqdn,country,location with context %} {%- set ns = namespace(default_backend='notdefined') %} {%- for name, values in haproxy.config.vhosts.items() %}{% if values.default_backend|default(false) %}{% set ns.default_backend = name %}{% endif %}{% endfor %}