Skip to content

Commit

Permalink
rndc reconfig a zone instead of restart named
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode committed Jul 1, 2019
1 parent e6677e2 commit aa79a1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@
keydir => "${::bind::defaults::confdir}/keys",
}

exec { 'rndc-reconfig':
refreshonly => true,
command => '/usr/sbin/rndc reconfig';
}

concat { [
"${::bind::defaults::confdir}/acls.conf",
"${::bind::defaults::confdir}/keys.conf",
Expand Down
5 changes: 0 additions & 5 deletions manifests/zone.pp
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@
require => Package['bind'],
}

exec { 'rndc-reconfig':
refreshonly => true,
command => '/usr/sbin/rndc reconfig';
}

concat::fragment { "bind-zone-mapping-${name}":
target => "${::bind::confdir}/domain-mappings.txt",
content => "${name}:${_domain}\n",
Expand Down

0 comments on commit aa79a1f

Please sign in to comment.