add parameter to change ns_records of /etc/designate/pools.yaml

As the RFC 1034 mentions, parent's NS records and child's NS records
must be the same.
For example:

  Parent:
    parent.example.com.       SOA ......
    child NS nameserver1.child.parent.example.com.
    child NS nameserver2.child.parent.example.com.
    child NS nameserver3.child.parent.example.com.

  Child:
    child.parent.example.com. SOA ......
          NS nameserver1.child.parent.example.com.
          NS nameserver2.child.parent.example.com.
          NS nameserver3.child.parent.example.com.

Currently, there are no parameters to edit ns_records of
/etc/designate/pools.yaml. To make them the same as parent's NS
records, we have to have a parameter to configure ns_records.

Partial-Bug: 1999134
Depends-On: Id4466cfb01cf69dca06c56f4cd03146d8e38d363
Change-Id: I97c4f7c4785dba4ea5485ccc8d4a6d0531e0d791
This commit is contained in:
Yamato Tanaka 2022-12-08 20:04:58 +09:00 committed by Takashi Kajinami
parent f602c2bb7d
commit 1a1e69e373
2 changed files with 11 additions and 0 deletions

@ -28,6 +28,10 @@ parameter_defaults:
NotifyPort: 5672
ContainerCli: podman
DesignateBackendListenIPs: ["192.168.24.20"]
DesignateBindNSRecords:
- test1.example.com.
- test2.example.com.
- test3.example.com.
ExtraFirewallRules:
'301 allow arbitrary tcp rule':
dport: 12345

@ -71,6 +71,12 @@ parameters:
type: string
default: ''
DesignateBindNSRecords:
description: >
Used to configure NS records and SOA record of zones managed by
designate with bind servers managed
type: comma_delimited_list
default: ['ns1.example.org.', 'ns2.example.org.', 'ns3.example.org.']
DesignateRndcKey:
description: The rndc key secret for communication with BIND.
type: string
@ -230,6 +236,7 @@ outputs:
name: designate_bind_pool
vars:
alternate_bind: true
designate_bind_pool_ns_records: {get_param: DesignateBindNSRecords}
designate_rndc_key: {get_param: DesignateRndcKey}
minidns_proxy_base_port: {get_param: DesignateMdnsProxyBasePort}
tripleo_external_bind_servers: {get_param: DesignateExternalBindServers}