Demacro include
This commit is contained in:
@@ -18,8 +18,7 @@ options {
|
|||||||
{% include 'named.conf.controls.j2' %}
|
{% include 'named.conf.controls.j2' %}
|
||||||
{% 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 %}
|
{% include 'named.conf.include.j2' %}
|
||||||
{{ include(item.include) }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.dlz is defined and item.dlz %}
|
{% if item.dlz is defined and item.dlz %}
|
||||||
{% from 'named.conf.dlz.j2' import dlz with context %}
|
{% from 'named.conf.dlz.j2' import dlz with context %}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
{% macro include(files) %}
|
{% for file in item.include %}
|
||||||
{% for file in files %}
|
|
||||||
include "{{ file }}";
|
include "{{ file }}";
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endmacro %}
|
|
||||||
Reference in New Issue
Block a user