Move all of the role here
This commit is contained in:
19
templates/named.conf.controls.j2
Normal file
19
templates/named.conf.controls.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
{% macro controls(controls) %}
|
||||
controls {
|
||||
{% filter indent(2, true) %}
|
||||
{% for control in controls %}
|
||||
{% if control.type == "inet" %}
|
||||
{{ ('inet ' + control.address) -}}
|
||||
{{ (' port ' + control.port | string) if control.port is defined and control.port -}}
|
||||
{{ (' allow {\n' + functions.simple_item_list(control.allow) + ' }') -}}
|
||||
{% elif control.type == "unix" %}
|
||||
{{ ('unix "' + control.path +'"') -}}
|
||||
{{ ('perm ' + control.perm | string) -}}
|
||||
{{ ('owner ' + control.owner | string) -}}
|
||||
{{ ('group ' + control.group | string) -}}
|
||||
{% endif %}
|
||||
{{ (' keys {\n' + functions.simple_item_list(control.keynames) + '}') if control.keynames is defined and control.keynames -}}
|
||||
{{ (' read-only ' + control.read_only | string) if control.read_only is defined -}};
|
||||
{% endfor %}};
|
||||
{% endfilter %}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user