trust anchors

This commit is contained in:
Daniel Akulenok
2024-05-14 14:34:49 +02:00
parent 807077f78c
commit 73d8632c49
2 changed files with 2 additions and 5 deletions

View File

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

View File

@@ -1,7 +1,6 @@
{% macro trust_anchors(trust_anchors) %}
trust-anchors {
{% filter indent(bind9_config_indent, true) %}
{% for anchor in trust_anchors if trust_anchors is iterable %}
{% for anchor in item.trust_anchors if item.trust_anchors is iterable %}
{{ (anchor.name | string) -}}
{{ (' ' + anchor.type) -}}
{{ (' ' + anchor.flags | string) -}}
@@ -10,4 +9,3 @@ trust-anchors {
{{ (' "' + anchor.key + '"') -}};
{% endfor %}
{% endfilter %}};
{% endmacro %}