feat: Add remote-servers support for BIND 9.20
This commit is contained in:
@@ -54,3 +54,6 @@
|
||||
{% if item.view is defined and item.view %}
|
||||
{% include 'named.conf.view.j2' %}
|
||||
{% endif %}
|
||||
{% if item.remote_servers is defined and item.remote_servers %}
|
||||
{% include 'named.conf.remote-servers.j2' %}
|
||||
{% endif %}
|
||||
|
||||
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