Skip to content

Commit aa79a1f

Browse files
committed
rndc reconfig a zone instead of restart named
1 parent e6677e2 commit aa79a1f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

manifests/init.pp

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102
keydir => "${::bind::defaults::confdir}/keys",
103103
}
104104

105+
exec { 'rndc-reconfig':
106+
refreshonly => true,
107+
command => '/usr/sbin/rndc reconfig';
108+
}
109+
105110
concat { [
106111
"${::bind::defaults::confdir}/acls.conf",
107112
"${::bind::defaults::confdir}/keys.conf",

manifests/zone.pp

-5
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@
159159
require => Package['bind'],
160160
}
161161

162-
exec { 'rndc-reconfig':
163-
refreshonly => true,
164-
command => '/usr/sbin/rndc reconfig';
165-
}
166-
167162
concat::fragment { "bind-zone-mapping-${name}":
168163
target => "${::bind::confdir}/domain-mappings.txt",
169164
content => "${name}:${_domain}\n",

0 commit comments

Comments
 (0)