paulbsd-salt/states/nginx/templates/access.j2
2021-08-19 09:55:49 +02:00

9 lines
339 B
Django/Jinja

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