Get debian's default zones accounted for

This commit is contained in:
Nate Riffe 2012-09-03 23:05:12 -05:00
parent f23bf1e1b4
commit 2d1d6d826d
2 changed files with 19 additions and 0 deletions

View File

@ -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}")

View File

@ -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 -%>