dns: refs #8552 - indentation jinga master.conf

This commit is contained in:
Xavi Lleó 2025-03-28 15:49:06 +01:00
parent 651ee7edf6
commit 7ee760f506
1 changed files with 19 additions and 18 deletions

View File

@ -15,17 +15,17 @@ options {
};
view "lan" {
match-clients {
{% for item in key_match_clients_lan_master if item.startswith("!key") %}
{{ item }};
{% endfor %}
match-clients {
{% for item in key_match_clients_lan_master if item.startswith("!key") %}
{{ item }};
{% endfor %}
{% for item in acl_match_clients %}
{{ item }};
{% endfor %}
{% endfor %}
{% for item in key_match_clients_lan_master if not item.startswith("!key") %}
{{ item }};
{% endfor %}
};
{% endfor %}
};
plugin query "filter-aaaa.so" {
filter-aaaa-on-v4 yes;
@ -40,14 +40,14 @@ view "lan" {
include "/etc/bind/named.conf.default-zones";
{% for zone in bind_zones.lan %}
{% for zone in bind_zones.lan %}
zone "{{ zone.name }}" {
type master;
forwarders {};
allow-update { key {{ zone.key }}; };
file "{{ zone.file }}";
};
{% endfor %}
{% endfor %}
};
view "wan" {
@ -60,25 +60,26 @@ view "wan" {
notify explicit;
also-notify {
{% for entry in bind_also_notify %}
{% for entry in bind_also_notify %}
{{ entry.ip }} key {{ entry.key }};
{% endfor %}
{% endfor %}
};
{% for zone in bind_zones.wan %}
{% if zone.in_view is defined %}
{% for z in zone.in_view %}
{% for zone in bind_zones.wan %}
{% if zone.in_view is defined %}
{% for z in zone.in_view %}
zone "{{ z }}" {
in-view "lan";
};
{% endfor %}
{% else %}
{% endfor %}
{% else %}
zone "{{ zone.name }}" {
type master;
forwarders {};
allow-update { key {{ zone.key }}; };
file "{{ zone.file }}";
};
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
};