From 5039e09daddbd5d4d780fe417b2650f223d1fcf9 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Mon, 18 Jun 2018 16:23:05 +0200 Subject: [PATCH] Optionally include generated forwarders.conf --- bind/files/suse/named.conf | 7 ++++++- pillar.example | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bind/files/suse/named.conf b/bind/files/suse/named.conf index 73bdebd..fc0094b 100644 --- a/bind/files/suse/named.conf +++ b/bind/files/suse/named.conf @@ -91,7 +91,12 @@ options { 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 #} {%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%} diff --git a/pillar.example b/pillar.example index 7e47245..9a8f149 100644 --- a/pillar.example +++ b/pillar.example @@ -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: