feat: Add remote-servers configuration for BIND 9.20
- Create new remote-servers template - Integrate into configuration generator
This commit is contained in:
committed by
Daniel Akulenok
parent
138a025e4c
commit
0ef2b42ce3
20
templates/named.conf.remote-servers.j2
Normal file
20
templates/named.conf.remote-servers.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
{% for server in item.remote_servers %}
|
||||
remote-servers "{{ server.name }}" {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for key, value in server.items() %}
|
||||
{% if key != 'name' %}
|
||||
{# Handle known complex types if any, otherwise default to simple string/block #}
|
||||
{% if value is iterable and value is not string and value is not mapping %}
|
||||
{{ key }} {
|
||||
{% for subitem in value %}
|
||||
{{ subitem }};
|
||||
{% endfor %}
|
||||
};
|
||||
{% else %}
|
||||
{{ key }} {{ value }};
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfilter %}
|
||||
};
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user