Merge "bind9: Add support for clean_zonefile option"

This commit is contained in:
Zuul 2023-11-20 18:31:44 +00:00 committed by Gerrit Code Review
commit febaf00946
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: