paulbsd-salt/states/nginx/templates/access.j2
2020-07-10 00:58:55 +02:00

8 lines
329 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- for key, value in salt['pillar.get']('net:ipv4_networks').items() %}
allow {{ value.ip }}/{{ value.mask }};
{%- endfor %}
{%- for key, value in salt['pillar.get']('net:ipv6_networks').items() %}
allow {{ value.ip }}/{{ value.mask }};
{%- endfor %}
deny all;