puppet-bind/manifests/key.pp
2012-09-25 23:01:23 -05:00

22 lines
568 B
Puppet

define bind::key (
$algorithm = 'hmac-sha256',
$secret,
$owner = 'root',
$group = $bind::params::bind_group,
) {
file { "${bind::confdir}/keys/${name}":
ensure => present,
owner => $owner,
group => $group,
mode => '0640',
content => template('bind/key.conf.erb'),
notify => Service[$bind::params::bind_service],
require => Package[$bind::params::bind_package],
}
concat::fragment { "bind-key-${name}":
order => '10',
target => "${bind::confdir}/keys.conf",
content => "include \"${bind::confdir}/keys/${name}\";\n",
}
}