puppet-bind/manifests/key.pp
2012-09-04 23:45:28 -05:00

19 lines
485 B
Puppet

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