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