Parameterize the key file's owner and group

This commit is contained in:
Nate Riffe 2012-09-05 10:33:34 -05:00
parent db236c58a6
commit 114f16b33a

View File

@ -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],