Revision 472ec49c
Added by Ewoud Kohl van Wijngaarden almost 12 years ago
manifests/rndckey.pp | ||
---|---|---|
define dns::rndckey ($alg = 'hmac-md5', $secret = 'APIEQEbbut1VcDEC/p8PRg==') {
|
||
$keyname = $name
|
||
file {
|
||
$dns::params::rndckeypath:
|
||
owner => root,
|
||
group => bind,
|
||
mode => '0640',
|
||
content => template('dns/rndc.key.erb');
|
||
}
|
||
}
|
templates/rndc.key.erb | ||
---|---|---|
key "<%=keyname%>" {
|
||
algorithm <%= alg %>;
|
||
secret "<%= secret %>";
|
||
};
|
||
|
Also available in: Unified diff
Remove old class