paulbsd-salt/states/haproxy/maps/redirects.j2
2023-01-04 23:32:56 +01:00

8 lines
286 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "haproxy/map.jinja" import haproxy with context %}
{%- for name, values in haproxy.config.vhosts.items() %}
{%- if values.redirect|default(false) %}
{{ name }} {{ values.redirect }}
{%- endif %}
{%- endfor %}