diff --git a/manifests/key.pp b/manifests/key.pp index 4fb49c5..9b9b0cd 100644 --- a/manifests/key.pp +++ b/manifests/key.pp @@ -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],