From e2b0a9194569bb6758d22370dd8e3e7887ef71d0 Mon Sep 17 00:00:00 2001 From: Holm der Kannenzwerg Date: Mon, 23 Feb 2026 11:21:12 +0100 Subject: [PATCH] source bin::config keys into named.conf --- manifests/init.pp | 1 + templates/named.conf.epp | 4 ++++ 2 files changed, 5 insertions(+) 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";