diff --git a/manifests/params.pp b/manifests/params.pp index 7ed6f75..36184b9 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -7,6 +7,22 @@ class bind::params { $confdir = '/etc/bind' $bind_user = 'bind' $bind_group = 'bind' + + file { [ + "${confdir}/bind.keys", + "${confdir}/db.empty", + "${confdir}/db.local", + "${confdir}/db.root", + "${confdir}/db.0", + "${confdir}/db.127", + "${confdir}/db.255", + "${confdir}/named.conf.default-zones", + "${confdir}/rndc.key", + "${confdir}/zones.rfc1918", + ]: + ensure => present, + require => Package[$bind_package], + } } default: { fail("Operating system is not supported ${::osfamily}") diff --git a/templates/named.conf.erb b/templates/named.conf.erb index c677f4e..18a4e32 100644 --- a/templates/named.conf.erb +++ b/templates/named.conf.erb @@ -1,3 +1,6 @@ # This file is managed by puppet - changes will be lost include "<%= confdir %>/acls.conf"; include "<%= confdir %>/views.conf"; +<%- if scope.lookupvar('osfamily') == 'Debian' -%> +include "<%= confdir %>/named.conf.default-zones"; +<%- end -%>