From 2d1d6d826da81497e470532b8b57fd9052bfd28e Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Mon, 3 Sep 2012 23:05:12 -0500 Subject: [PATCH] Get debian's default zones accounted for --- manifests/params.pp | 16 ++++++++++++++++ templates/named.conf.erb | 3 +++ 2 files changed, 19 insertions(+) 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 -%>