paulbsd-salt/states/haproxy/maps/access.j2
2022-11-08 11:04:39 +01:00

9 lines
318 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "haproxy/map.jinja" import net with context %}
{%- for key, value in net.ipv4_networks.items() %}
{{ value.ip }}/{{ value.mask }}
{%- endfor %}
{%- for key, value in net.ipv6_networks.items() %}
{{ value.ip }}/{{ value.mask }}
{%- endfor %}