Optionally include generated forwarders.conf

This commit is contained in:
Vladimir Nadvornik 2018-06-18 16:23:05 +02:00
parent 6e8652dcb3
commit 5039e09dad
2 changed files with 12 additions and 1 deletions

View file

@ -93,6 +93,11 @@ options {
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 #}
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%}
{%- if value is iterable and value is not string %}

View file

@ -206,6 +206,12 @@ bind:
# 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 ###
bind: