diff --git a/manifests/init.pp b/manifests/init.pp index f3000bd..5c4a385 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1075,6 +1075,7 @@ 'confdir' => $confdir, 'views_enable' => $views_enable, 'dnssec_policy_available' => $dnssec_policy_available, + 'custom_configs' => $configs, } bind::config { 'named.conf': diff --git a/templates/named.conf.epp b/templates/named.conf.epp index 40381c5..947609e 100644 --- a/templates/named.conf.epp +++ b/templates/named.conf.epp @@ -16,4 +16,8 @@ include "<%= $confdir -%>/named.conf.views"; include "<%= $confdir -%>/named.conf.zones"; <% } -%> +<% $custom_configs.keys.sort.each |$entry| { -%> +include "<%= $confdir -%>/<%= $entry -%>"; +<% } -%> + include "<%= $confdir -%>/named.conf.local";