Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
# }
#
class bind (
$chroot = false,
$service_reload = true,
$servicename = $::bind::params::servicename,
$packagenameprefix = $::bind::params::packagenameprefix,
$binduser = $::bind::params::binduser,
$bindgroup = $::bind::params::bindgroup,
$chroot = false,
$service_reload = true,
$servicename = $::bind::params::servicename,
$packagenameprefix = $::bind::params::packagenameprefix,
$binduser = $::bind::params::binduser,
$bindgroup = $::bind::params::bindgroup,
$named_checkzone_path = '/usr/sbin/named-checkzone',
) inherits ::bind::params {

# Chroot differences
Expand Down
8 changes: 3 additions & 5 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# For backwards compatibility. Use the main bind class instead.
#
class bind::server (
$chroot = false,
$packagenameprefix = $::bind::params::packagenameprefix,
$chroot = false,
$packagenameprefix = $::bind::params::packagenameprefix,
) inherits ::bind::params {

class { '::bind':
class { 'bind':
chroot => $chroot,
packagenameprefix => $packagenameprefix,
}

}
2 changes: 1 addition & 1 deletion manifests/server/file.pp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
source => $zone_source,
content => $content,
replace => $replace,
validate_cmd => "/usr/sbin/named-checkzone -k fail -m fail -M fail -n fail -r fail -S fail -T warn -W warn ${zonename} %",
validate_cmd => "${bind::named_checkzone_path} -k fail -m fail -M fail -n fail -r fail -S fail -T warn -W warn ${zonename} %",
notify => Class['::bind::service'],
# For the parent directory
require => [
Expand Down