paulbsd-salt/states/haproxy/templates/maps/ua.j2
Paul Lecuq 5a6b48a7f6
All checks were successful
continuous-integration/drone/push Build is passing
updated haproxy state
2023-07-15 19:54:00 +02:00

8 lines
313 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 not values.redirect|default(false) and values.ua|default(false) %}
{{ values.ua }} {{ name }}
{%- endif %}
{%- endfor %}