Files
puppet-designate/manifests/agent/bind9.pp
Takashi Kajinami 456aef053e Support agent backend and bind9 agent backend
This change introduces support for setting up agent backend[1] and
bind9 agent backend.

[1] https://docs.openstack.org/designate/latest/admin/backends/agent.html

Related-Bug: #1961516
Change-Id: I5c65aa4853d8dfb4e54eaa4d65c871aa7968117c
2022-02-21 18:10:56 +09:00

57 lines
1.6 KiB
Puppet

# == Class designate::agent::bind9
#
# Configure bind9 as agent backend
#
# == Parameters
#
# [*rndc_host*]
# (Optional) RNDC Host
# Defaults to $::os_service_default.
#
# [*rndc_port*]
# (Optional) RNDC Port.
# Defaults to 953.
#
# [*rndc_config_file*]
# (Optional) Location of the rndc configuration file.
# Defaults to '/etc/rndc.conf'
#
# [*rndc_key_file*]
# (Optional) Location of the rndc key file.
# Defaults to '/etc/rndc.key'
#
# [*rndc_timeout*]
# (Optional) RNDC command timeout.
# Defaults to $::os_service_default.
#
# [*zone_file_path*]
# (Optional) Path where zone files are stored.
# Defaults to $::os_service_default.
#
# [*query_destination*]
# (Optional) Host to query when finding zones.
# Defaults to $::os_service_default.
#
class designate::agent::bind9 (
$rndc_host = $::os_service_default,
$rndc_port = $::os_service_default,
$rndc_config_file = '/etc/rndc.conf',
$rndc_key_file = '/etc/rndc.key',
$rndc_timeout = $::os_service_default,
$zone_file_path = $::os_service_default,
$query_destination = $::os_service_default,
) {
include designate::deps
designate_config {
'backend:agent:bind9/rndc_host' : value => $rndc_host;
'backend:agent:bind9/rndc_port' : value => $rndc_port;
'backend:agent:bind9/rndc_config_file' : value => $rndc_config_file;
'backend:agent:bind9/rndc_key_file' : value => $rndc_key_file;
'backend:agent:bind9/rndc_timeout' : value => $rndc_timeout;
'backend:agent:bind9/zone_file_path' : value => $zone_file_path;
'backend:agent:bind9/query_destination' : value => $query_destination;
}
}