Add ability to configure rndc controls

TripleO can't do this through hieradata because this is a hash with
a dynamic value as a key.  This just exposes the parameter so it
can be set from a manifest.

Change-Id: Ib3d4f024e409e5d2aad9117b1418ccd0050b964d
This commit is contained in:
Ben Nemec 2018-07-11 20:52:11 +00:00
parent 0f39d17135
commit df4991fbe2
1 changed files with 12 additions and 1 deletions

View File

@ -20,16 +20,27 @@
# (optional) Port to use for dns service on rndc_host.
# Defaults to '953'
#
# [*rndc_controls*]
# (optional) Hash defining controls configuration for rndc.
# Defaults to undef, which uses the puppet-dns default
#
class designate::backend::bind9 (
$rndc_host = '127.0.0.1',
$rndc_port = '953',
$rndc_config_file = '/etc/rndc.conf',
$rndc_key_file = '/etc/rndc.key',
$rndc_controls = undef,
) {
include ::designate::deps
include ::designate
include ::dns
if $rndc_controls {
class { '::dns':
controls => $rndc_controls,
}
} else {
include ::dns
}
designate_config {
'backend:bind9/rndc_host' : value => $rndc_host;