Merge "Add support for also_notifies pool option"

This commit is contained in:
Zuul 2023-10-30 17:23:46 +00:00 committed by Gerrit Code Review
commit 35c77cdc60
5 changed files with 32 additions and 0 deletions

View File

@ -45,6 +45,11 @@
# (Optional) TCP Port to connect to designate-mdns service.
# Defaults to 5354.
#
# [*also_notifies*]
# (Optional) Array of hosts for which designate-mdns will send DNS notify
# packets to.
# Defaults to [].
#
# [*configure_bind*]
# (Optional) Enables running bind9/named configuration for hosts where
# designate and designate bind services are collocated.
@ -65,6 +70,7 @@ class designate::backend::bind9 (
$dns_port = 53,
Array[String[1]] $mdns_hosts = ['127.0.0.1'],
$mdns_port = 5354,
Array[String[1]] $also_notifies = [],
Boolean $configure_bind = true,
Boolean $manage_pool = true,
) {

View File

@ -32,6 +32,11 @@
# (Optional) Name of TSIGKey.
# Defaults to undef.
#
# [*also_notifies*]
# (Optional) Array of hosts for which designate-mdns will send DNS notify
# packets to.
# Defaults to [].
#
# [*manage_pool*]
# (Optional) Manage pools.yaml and update pools by designate-manage command
# Defaults to true
@ -44,6 +49,7 @@ class designate::backend::pdns4 (
$mdns_port = 5354,
String[1] $api_endpoint = 'http://127.0.0.1:8081',
Optional[String[1]] $tsigkey_name = undef,
Array[String[1]] $also_notifies = [],
Boolean $manage_pool = true,
) {

View File

@ -0,0 +1,6 @@
---
features:
- |
The ``designate::backend::bind9`` class and
the ``designate::backend::pdns4`` class now supports the ``also_notifies``
parameter.

View File

@ -34,3 +34,10 @@
rndc_config_file: <%= @rndc_config_file %>
rndc_key_file: <%= @rndc_key_file %>
<% end -%>
<% if !(@also_notifies.empty?) -%>
also_notifies:
<% @also_notifies.each do |also_notify| -%>
- host: <%= also_notify %>
port: <%= @dns_port.to_s %>
<% end -%>
<% end -%>

View File

@ -23,3 +23,10 @@
tsigkey_name: <%= @tsigkey_name %>
<%- end -%>
<% end -%>
<% if !(@also_notifies.empty?) -%>
also_notifies:
<% @also_notifies.each do |also_notify| -%>
- host: <%= also_notify %>
port: <%= @dns_port.to_s %>
<% end -%>
<% end -%>