tls demacro

This commit is contained in:
Daniel Akulenok
2024-05-14 14:30:18 +02:00
parent 0809bc7e91
commit 807077f78c
2 changed files with 2 additions and 6 deletions

View File

@@ -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 %}