De-macro controls
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
{% macro controls(controls) %}
|
|
||||||
controls {
|
controls {
|
||||||
{% filter indent(bind9_config_indent, true) %}
|
{% filter indent(bind9_config_indent, true) %}
|
||||||
{% for control in controls %}
|
{% for control in item.controls %}
|
||||||
{% if control.type == "inet" %}
|
{% if control.type == "inet" %}
|
||||||
{{ ('inet ' + control.address) -}}
|
{{ ('inet ' + control.address) -}}
|
||||||
{{ (' port ' + control.port | string) if control.port is defined and control.port -}}
|
{{ (' port ' + control.port | string) if control.port is defined and control.port -}}
|
||||||
@@ -16,4 +15,3 @@ controls {
|
|||||||
{{ (' read-only ' + control.read_only | string) if control.read_only is defined -}};
|
{{ (' read-only ' + control.read_only | string) if control.read_only is defined -}};
|
||||||
{% endfor %}};
|
{% endfor %}};
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
{% endmacro %}
|
|
||||||
@@ -15,8 +15,7 @@ options {
|
|||||||
{% include 'named.conf.primaries.j2' %}
|
{% include 'named.conf.primaries.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.controls is defined and item.controls %}
|
{% if item.controls is defined and item.controls %}
|
||||||
{% from 'named.conf.controls.j2' import controls with context %}
|
{% include 'named.conf.controls.j2' %}
|
||||||
{{ controls(item.controls) }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.include is defined and item.include %}
|
{% if item.include is defined and item.include %}
|
||||||
{% from 'named.conf.include.j2' import include with context %}
|
{% from 'named.conf.include.j2' import include with context %}
|
||||||
|
|||||||
Reference in New Issue
Block a user