demacro zone and view

This commit is contained in:
Daniel Akulenok
2024-05-14 14:36:54 +02:00
parent 73d8632c49
commit b6fa879b93
3 changed files with 5 additions and 10 deletions

View File

@@ -54,10 +54,8 @@ options {
{% include 'named.conf.trust-anchors.j2' %}
{% endif %}
{% if item.zones is defined and item.zones %}
{% from 'named.conf.zone.j2' import zones with context %}
{{ zones(item.zones) }}
{% include 'named.conf.zone.j2' %}
{% endif %}
{% if item.view is defined and item.view %}
{% from 'named.conf.view.j2' import view with context %}
{{ view(item.view) }}
{% include 'named.conf.view.j2' %}
{% endif %}