trust anchors
This commit is contained in:
@@ -51,8 +51,7 @@ options {
|
|||||||
{% include 'named.conf.tls.j2' %}
|
{% include 'named.conf.tls.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.trust_anchors is defined and item.trust_anchors %}
|
{% if item.trust_anchors is defined and item.trust_anchors %}
|
||||||
{% from 'named.conf.trust-anchors.j2' import trust_anchors with context %}
|
{% include 'named.conf.trust-anchors.j2' %}
|
||||||
{{ trust_anchors(item.trust_anchors) }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.zones is defined and item.zones %}
|
{% if item.zones is defined and item.zones %}
|
||||||
{% from 'named.conf.zone.j2' import zones with context %}
|
{% from 'named.conf.zone.j2' import zones with context %}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% macro trust_anchors(trust_anchors) %}
|
|
||||||
trust-anchors {
|
trust-anchors {
|
||||||
{% filter indent(bind9_config_indent, true) %}
|
{% 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.name | string) -}}
|
||||||
{{ (' ' + anchor.type) -}}
|
{{ (' ' + anchor.type) -}}
|
||||||
{{ (' ' + anchor.flags | string) -}}
|
{{ (' ' + anchor.flags | string) -}}
|
||||||
@@ -10,4 +9,3 @@ trust-anchors {
|
|||||||
{{ (' "' + anchor.key + '"') -}};
|
{{ (' "' + anchor.key + '"') -}};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfilter %}};
|
{% endfilter %}};
|
||||||
{% endmacro %}
|
|
||||||
Reference in New Issue
Block a user