Merge "Allow specifying an rndc key"
This commit is contained in:
commit
1623db975b
@ -23,11 +23,21 @@
|
|||||||
# for more details.
|
# for more details.
|
||||||
# Defaults to hiera('step')
|
# Defaults to hiera('step')
|
||||||
#
|
#
|
||||||
|
# [*rndc_key*]
|
||||||
|
# (Optional) The base64-encoded key secret for /etc/rndc.key.
|
||||||
|
# Defaults to hiera('designate_rndc_key')
|
||||||
|
#
|
||||||
class tripleo::profile::base::designate::worker (
|
class tripleo::profile::base::designate::worker (
|
||||||
$step = Integer(hiera('step')),
|
$step = Integer(hiera('step')),
|
||||||
|
$rndc_key = hiera('designate_rndc_key'),
|
||||||
) {
|
) {
|
||||||
include ::tripleo::profile::base::designate
|
include ::tripleo::profile::base::designate
|
||||||
|
|
||||||
if $step >= 4 {
|
if $step >= 4 {
|
||||||
|
file { 'designate rndc key':
|
||||||
|
path => '/etc/rndc.key',
|
||||||
|
content => template('tripleo/designate/rndc.key.erb')
|
||||||
|
}
|
||||||
include ::designate::worker
|
include ::designate::worker
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
templates/designate/rndc.key.erb
Normal file
4
templates/designate/rndc.key.erb
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
key "rndc-key" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "<%= @rndc_key %>";
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user