mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
Optionally include generated forwarders.conf
This commit is contained in:
parent
6e8652dcb3
commit
5039e09dad
2 changed files with 12 additions and 1 deletions
|
@ -91,7 +91,12 @@ options {
|
||||||
|
|
||||||
notify no;
|
notify no;
|
||||||
|
|
||||||
disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
|
disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
|
||||||
|
|
||||||
|
# include the forwarders.conf file generated by netconfig(8)
|
||||||
|
{%- if salt['pillar.get']('bind:config:include_forwarders', False) %}
|
||||||
|
include "/etc/named.d/forwarders.conf";
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{#- Allow inclusion of arbitrary statements #}
|
{#- Allow inclusion of arbitrary statements #}
|
||||||
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%}
|
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%}
|
||||||
|
|
|
@ -206,6 +206,12 @@ bind:
|
||||||
|
|
||||||
# End Debian based systems features
|
# End Debian based systems features
|
||||||
|
|
||||||
|
# on SUSE include the forwarders.conf file generated by netconfig(8)
|
||||||
|
bind:
|
||||||
|
config:
|
||||||
|
include_forwarders: True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Keys, Zones, ACLs and Views ###
|
### Keys, Zones, ACLs and Views ###
|
||||||
bind:
|
bind:
|
||||||
|
|
Loading…
Add table
Reference in a new issue