Files
ansible-bind9-role/templates/named.conf.http.j2
Daniel Akulenok dfd93ecfea Demacro item.http
2024-05-14 13:47:59 +02:00

16 lines
663 B
Django/Jinja

{% for http in item.http if item.http is iterable %}
http {{ http.name }} {
{% filter indent(bind9_config_indent, true) %}
{% if http.endpoints is defined and http.endpoints %}
endpoints {
{% filter indent(bind9_config_indent, true) %}
{% for endpoint in http.endpoints %}
{{ '"' + endpoint + '";' }}
{% endfor %}
{% endfilter %}};
{% endif%}
{{ ('listener-clients ' + http.listener_clients | string + ';\n') if http.listener_clients is defined and http.listener_clients -}}
{{ ('streams-per-connection ' + http.streams_per_connection | string + ';\n') if http.streams_per_connection is defined and http.streams_per_connection -}}
{% endfilter %}};
{% endfor %}