bind9: Add support for clean_zonefile option

The option was added some cycles ago[1].

[1] 7618d073c9ee81cdf835f603e9030f6dd09b6d75

Change-Id: I94f74ca0e2d8d5bdad5787f4b2bcc29de26cadf1
This commit is contained in:
Takashi Kajinami 2023-11-17 18:07:48 +09:00
parent b1f3bf273e
commit e3b74c6a36
3 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,10 @@
# (Optional) TCP Port to connect to designate-mdns service.
# Defaults to 5354.
#
# [*clean_zonefile*]
# (Optional) Removes zone files when a zone is deleted.
# Defaults to false
#
# [*also_notifies*]
# (Optional) Array of hosts for which designate-mdns will send DNS notify
# packets to.
@ -72,6 +76,7 @@ class designate::backend::bind9 (
$dns_port = 53,
Array[String[1], 1] $mdns_hosts = ['127.0.0.1'],
$mdns_port = 5354,
Boolean $clean_zonefile = false,
Array[String[1]] $also_notifies = [],
# DEPRECATED PARAMETERS
Boolean $configure_bind = true,

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``designate::backend::clean_zonefile`` parameter has been added.

View File

@ -33,6 +33,9 @@
rndc_port: <%= @rndc_port %>
rndc_config_file: <%= @rndc_config_file %>
rndc_key_file: <%= @rndc_key_file %>
<% if @clean_zonefile -%>
clean_zonefile: true
<% end -%>
<% end -%>
<% if !(@also_notifies.empty?) -%>
also_notifies: