Parameterize the key file's owner and group
This commit is contained in:
parent
db236c58a6
commit
114f16b33a
@ -1,11 +1,13 @@
|
||||
define bind::key (
|
||||
$algorithm = 'hmac-sha256',
|
||||
$secret,
|
||||
$owner = 'root',
|
||||
$group = $bind::params::bind_group,
|
||||
) {
|
||||
file { "${bind::confdir}/keys/${name}":
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => $bind::params::bind_group,
|
||||
owner => $owner,
|
||||
group => $group,
|
||||
mode => '0640',
|
||||
content => template('bind/key.conf.erb'),
|
||||
notify => Service[$bind::params::bind_service],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user