tls demacro
This commit is contained in:
@@ -46,11 +46,9 @@ options {
|
||||
{% endif %}
|
||||
{% if item.statistics_channels is defined and item.statistics_channels %}
|
||||
{% include 'named.conf.statistics-channels.j2' %}
|
||||
{{ statistics_channels(item.statistics_channels) }}
|
||||
{% endif %}
|
||||
{% if item.tls is defined and item.tls %}
|
||||
{% from 'named.conf.tls.j2' import tls with context %}
|
||||
{{ tls(item.tls) }}
|
||||
{% 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 %}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{% macro tls(tlss) %}
|
||||
{% for tls in tlss if tlss is iterable %}
|
||||
{% for tls in item.tls if item.tls is iterable %}
|
||||
tls {{ tls.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ ('cert-file "' + tls.cert_file + '";\n') if tls.cert_file is defined and tls.cert_file -}}
|
||||
@@ -13,4 +12,3 @@ tls {{ tls.name }} {
|
||||
{{ (functions.boolean_option('session-tickets', tls.session_tickets) + '\n') if tls.session_tickets is defined -}}
|
||||
{% endfilter %}};
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user