File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ bind::params::bind_group: 'bind'
5
5
bind::params::bind_package : ' bind9'
6
6
bind::params::bind_service : ' bind9'
7
7
bind::params::nsupdate_package : ' dnsutils'
8
-
8
+ bind::namedconf : ' /etc/bind/named.conf '
9
9
bind::confdir : ' /etc/bind'
10
10
bind::cachedir : ' /var/cache/bind'
11
11
bind::rndc : true
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ bind::params::bind_group: 'named'
5
5
bind::params::bind_package : ' bind'
6
6
bind::params::bind_service : ' named'
7
7
bind::params::nsupdate_package : ' bind-utils'
8
-
8
+ bind::namedconf : ' /etc/named.conf '
9
9
bind::confdir : ' /etc/named'
10
10
bind::cachedir : ' /var/named'
11
11
bind::rndc : true
Original file line number Diff line number Diff line change 2
2
3
3
class bind (
4
4
$confdir = undef ,
5
+ $namedconf = undef ,
5
6
$cachedir = undef ,
6
7
$forwarders = undef ,
7
8
$dnssec = undef ,
8
9
$version = undef ,
9
10
$rndc = undef ,
10
11
$statistics_port = undef ,
11
12
) {
12
- include params
13
+ include ::bind:: params
13
14
14
15
$auth_nxdomain = false
15
16
59
60
recurse => true ,
60
61
}
61
62
62
- file { "${confdir}/named.conf " :
63
+ file { "${namedconf} " :
63
64
content => template (' bind/named.conf.erb' ),
64
65
}
65
66
Original file line number Diff line number Diff line change 11
11
} )
12
12
}
13
13
14
- it { should contain_file ( '_CONFDIR_/named.conf ' ) . that_requires ( 'Package[bind]' ) }
15
- it { should contain_file ( '_CONFDIR_/named.conf ' ) . that_notifies ( 'Service[bind]' ) }
14
+ it { should contain_file ( '_NAMEDCONF_ ' ) . that_requires ( 'Package[bind]' ) }
15
+ it { should contain_file ( '_NAMEDCONF_ ' ) . that_notifies ( 'Service[bind]' ) }
16
16
17
17
it {
18
18
should contain_service ( 'bind' ) . with ( {
Original file line number Diff line number Diff line change 1
1
---
2
2
bind::confdir : ' _CONFDIR_'
3
+ bind::namedconf : ' _NAMEDCONF_'
You can’t perform that action at this time.
0 commit comments