ansible-collection-nameserver/roles/replica/templates/etc/nsd/nsd.conf.d/10-replica.conf.j2

22 lines
407 B
Text
Raw Normal View History

2020-11-19 00:21:11 +01:00
{{ ansible_managed | comment }}
#
2020-11-20 00:54:31 +01:00
# Replica for zones of primary {{ primary }}
2020-11-19 00:21:11 +01:00
#
pattern:
name: xfr-{{ primary }}
zonefile: "/var/lib/nsd/replica/%szone"
2020-11-19 00:59:06 +01:00
{% for addr in masters %}
2020-11-19 00:21:11 +01:00
allow-notify: {{ addr }} NOKEY
2020-11-19 00:59:06 +01:00
{% endfor %}
{% for addr in masters %}
2020-11-19 00:21:11 +01:00
request-xfr: {{ addr }} NOKEY
2020-11-19 00:59:06 +01:00
{% endfor %}
2020-11-19 00:21:11 +01:00
{% for zone in zones %}
zone:
2020-11-19 00:46:30 +01:00
name: {{ zone }}.
2020-11-19 00:21:11 +01:00
include-pattern: "xfr-{{ primary }}"
2020-11-19 00:59:06 +01:00
{% endfor %}