This commit is contained in:
parent
bfb6866f57
commit
b33f312964
@ -1,5 +1,5 @@
|
|||||||
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
## {{ 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') %}
|
{%- 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 %}
|
{%- for name, values in haproxy.config.vhosts.items() %}{% if values.default_backend|default(false) %}{% set ns.default_backend = name %}{% endif %}{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user