dns: refs #8552 - indentation jinga master.conf
This commit is contained in:
parent
651ee7edf6
commit
7ee760f506
|
@ -15,17 +15,17 @@ options {
|
||||||
};
|
};
|
||||||
|
|
||||||
view "lan" {
|
view "lan" {
|
||||||
match-clients {
|
match-clients {
|
||||||
{% for item in key_match_clients_lan_master if item.startswith("!key") %}
|
{% for item in key_match_clients_lan_master if item.startswith("!key") %}
|
||||||
{{ item }};
|
{{ item }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for item in acl_match_clients %}
|
{% for item in acl_match_clients %}
|
||||||
{{ item }};
|
{{ item }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for item in key_match_clients_lan_master if not item.startswith("!key") %}
|
{% for item in key_match_clients_lan_master if not item.startswith("!key") %}
|
||||||
{{ item }};
|
{{ item }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
plugin query "filter-aaaa.so" {
|
plugin query "filter-aaaa.so" {
|
||||||
filter-aaaa-on-v4 yes;
|
filter-aaaa-on-v4 yes;
|
||||||
|
@ -40,14 +40,14 @@ view "lan" {
|
||||||
|
|
||||||
include "/etc/bind/named.conf.default-zones";
|
include "/etc/bind/named.conf.default-zones";
|
||||||
|
|
||||||
{% for zone in bind_zones.lan %}
|
{% for zone in bind_zones.lan %}
|
||||||
zone "{{ zone.name }}" {
|
zone "{{ zone.name }}" {
|
||||||
type master;
|
type master;
|
||||||
forwarders {};
|
forwarders {};
|
||||||
allow-update { key {{ zone.key }}; };
|
allow-update { key {{ zone.key }}; };
|
||||||
file "{{ zone.file }}";
|
file "{{ zone.file }}";
|
||||||
};
|
};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
view "wan" {
|
view "wan" {
|
||||||
|
@ -60,25 +60,26 @@ view "wan" {
|
||||||
notify explicit;
|
notify explicit;
|
||||||
|
|
||||||
also-notify {
|
also-notify {
|
||||||
{% for entry in bind_also_notify %}
|
{% for entry in bind_also_notify %}
|
||||||
{{ entry.ip }} key {{ entry.key }};
|
{{ entry.ip }} key {{ entry.key }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
{% for zone in bind_zones.wan %}
|
{% for zone in bind_zones.wan %}
|
||||||
{% if zone.in_view is defined %}
|
{% if zone.in_view is defined %}
|
||||||
{% for z in zone.in_view %}
|
{% for z in zone.in_view %}
|
||||||
zone "{{ z }}" {
|
zone "{{ z }}" {
|
||||||
in-view "lan";
|
in-view "lan";
|
||||||
};
|
};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
zone "{{ zone.name }}" {
|
zone "{{ zone.name }}" {
|
||||||
type master;
|
type master;
|
||||||
forwarders {};
|
forwarders {};
|
||||||
allow-update { key {{ zone.key }}; };
|
allow-update { key {{ zone.key }}; };
|
||||||
file "{{ zone.file }}";
|
file "{{ zone.file }}";
|
||||||
};
|
};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue