statistics_channels
This commit is contained in:
@@ -45,7 +45,7 @@ options {
|
|||||||
{% include 'named.conf.server.j2' %}
|
{% include 'named.conf.server.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.statistics_channels is defined and item.statistics_channels %}
|
{% if item.statistics_channels is defined and item.statistics_channels %}
|
||||||
{% from 'named.conf.statistics-channels.j2' import statistics_channels with context %}
|
{% include 'named.conf.statistics-channels.j2' %}
|
||||||
{{ statistics_channels(item.statistics_channels) }}
|
{{ statistics_channels(item.statistics_channels) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.tls is defined and item.tls %}
|
{% if item.tls is defined and item.tls %}
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
{% macro statistics_channels(statistics_channels) %}
|
|
||||||
statistics-channels {
|
statistics-channels {
|
||||||
{% filter indent(bind9_config_indent, true) %}
|
{% filter indent(bind9_config_indent, true) %}
|
||||||
{% for channel in statistics_channels if statistics_channels is iterable %}
|
{% for channel in item.statistics_channels if item.statistics_channels is iterable %}
|
||||||
inet {{ channel.address | string }}
|
inet {{ channel.address | string }}
|
||||||
{{- (' port ' + channel.port | string) if channel.port is defined and channel.port -}}
|
{{- (' port ' + channel.port | string) if channel.port is defined and channel.port -}}
|
||||||
{{- (' allow {\n' + functions.simple_item_list(channel.allow) + '};\n') if channel.allow is defined and channel.allow -}}
|
{{- (' allow {\n' + functions.simple_item_list(channel.allow) + '};\n') if channel.allow is defined and channel.allow -}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfilter %}};
|
{% endfilter %}};
|
||||||
{% endmacro %}
|
|
||||||
Reference in New Issue
Block a user