2021-04-03 13:34:28 +02:00
|
|
|
{%- from "nsd/macros.jinja" import zonefile_name with context -%}
|
2023-02-17 21:21:15 +01:00
|
|
|
{%- set extraopts = ['allow-notify', 'request-xfr', 'outgoing-interface'] -%}
|
2021-04-03 13:34:28 +02:00
|
|
|
########################################################################
|
|
|
|
# File managed by Salt at <{{ source }}>.
|
|
|
|
# Your changes will be overwritten.
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
{%- for name, config in nsd.get('zones').items() %}
|
|
|
|
zone:
|
|
|
|
name: "{{ name }}"
|
|
|
|
zonefile: "{{ nsd.zones_dir }}/{{ zonefile_name(name, config) }}"
|
2023-02-17 21:21:15 +01:00
|
|
|
{%- for option in extraopts %}
|
|
|
|
{%- if option in config %}
|
|
|
|
{{ option }}: {{ config[option] }}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
2021-04-03 13:34:28 +02:00
|
|
|
{%- endfor %}
|