From 4450cd9fc18e6af77f516b2a9610a51ae25545fd Mon Sep 17 00:00:00 2001 From: Malte Starostik Date: Wed, 14 Feb 2018 13:07:26 +0100 Subject: [PATCH 1/2] Add support for custom includes on RedHat --- bind/files/redhat/named.conf.local | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bind/files/redhat/named.conf.local b/bind/files/redhat/named.conf.local index fc5907a..fa109af 100644 --- a/bind/files/redhat/named.conf.local +++ b/bind/files/redhat/named.conf.local @@ -80,3 +80,7 @@ acl {{ name }} { {%- endfor %} }; {%- endfor %} + +{%- for incl in salt['pillar.get']('bind:config:includes', []) %} +include "{{ incl }}"; +{% endfor %} From 72c65db5bc7fc5f6e72912a31ddaf9f00ad55cd0 Mon Sep 17 00:00:00 2001 From: Malte Starostik Date: Wed, 14 Feb 2018 13:07:26 +0100 Subject: [PATCH 2/2] Add support for custom includes on RedHat Now in named.conf instead of named.conf.local --- bind/files/redhat/named.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bind/files/redhat/named.conf b/bind/files/redhat/named.conf index 11a10da..681410d 100644 --- a/bind/files/redhat/named.conf +++ b/bind/files/redhat/named.conf @@ -80,3 +80,6 @@ zone "." IN { include "/etc/named.rfc1912.zones"; include "{{ map.local_config }}"; include "/etc/named.root.key"; +{%- for incl in salt['pillar.get']('bind:config:includes', []) %} +include "{{ incl }}"; +{% endfor %}