paulbsd-salt/states/nginx/templates/access.j2

8 lines
329 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
## {{ 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;