knotd: do not try to load zone file of slave zones

This commit is contained in:
jeltz 2022-08-19 15:52:06 +02:00
parent 5542e63d14
commit 6f32c9bc2c
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -104,10 +104,7 @@ template:
- id: default - id: default
storage: "{{ knotd__zones_dir }}" storage: "{{ knotd__zones_dir }}"
file: "%s.zone" file: "%s.zone"
semantic-checks: {{ knotd__semantic_checks
| ternary("on", "off") }}
zonefile-sync: -1 zonefile-sync: -1
zonefile-load: difference-no-serial
journal-content: changes journal-content: changes
journal-content: all journal-content: all
serial-policy: {{ knotd__serial_policy }} serial-policy: {{ knotd__serial_policy }}
@ -128,6 +125,11 @@ zone:
{% endif %} {% endif %}
{% if zone.master is defined %} {% if zone.master is defined %}
master: {{ zone.master }} master: {{ zone.master }}
zonefile-load: none
{% else %}
zonefile-load: difference-no-serial
semantic-checks: {{ knotd__semantic_checks
| ternary("on", "off") }}
{% endif %} {% endif %}
{% if zone.dnssec_policy is defined %} {% if zone.dnssec_policy is defined %}
dnssec-policy: {{ zone.dnssec_policy }} dnssec-policy: {{ zone.dnssec_policy }}