Skip to content

Commit 451ccef

Browse files
committed
bind::server: add param to change the path of named-checkzone
1 parent f742361 commit 451ccef

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

manifests/server.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# For backwards compatibility. Use the main bind class instead.
44
#
55
class bind::server (
6-
$chroot = false,
7-
$packagenameprefix = $::bind::params::packagenameprefix,
6+
$chroot = false,
7+
$packagenameprefix = $::bind::params::packagenameprefix,
8+
$named_checkzone_path = '/usr/sbin/named-checkzone',
89
) inherits ::bind::params {
9-
10-
class { '::bind':
10+
include bind
11+
Class['bind'] {
1112
chroot => $chroot,
1213
packagenameprefix => $packagenameprefix,
1314
}
14-
1515
}

manifests/server/file.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
) {
4646

4747
include '::bind::params'
48+
include 'bind::server'
4849

4950
if $group {
5051
$bindgroup = $group
@@ -78,7 +79,7 @@
7879
source => $zone_source,
7980
content => $content,
8081
replace => $replace,
81-
validate_cmd => "/usr/sbin/named-checkzone -k fail -m fail -M fail -n fail -r fail -S fail -T warn -W warn ${zonename} %",
82+
validate_cmd => "${bind::server::named_checkzone_path} -k fail -m fail -M fail -n fail -r fail -S fail -T warn -W warn ${zonename} %",
8283
notify => Class['::bind::service'],
8384
# For the parent directory
8485
require => [

0 commit comments

Comments
 (0)