From df4991fbe2c9f7e5b457ae8ed0f6e401fc4e9c1d Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Wed, 11 Jul 2018 20:52:11 +0000 Subject: [PATCH] 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 --- manifests/backend/bind9.pp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/manifests/backend/bind9.pp b/manifests/backend/bind9.pp index b859bc86..82bb5bdb 100644 --- a/manifests/backend/bind9.pp +++ b/manifests/backend/bind9.pp @@ -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;