designate: allow designate_ns_record to be a list

In most real world deployments, there will be multiple backend DNS
servers, allow to specify all of them for the pool configuration.

Change-Id: Ic9737d0446a807891b429f080ae1bf048a3c8e4a
This commit is contained in:
Michał Nasiadka 2021-07-26 14:21:43 +02:00 committed by Dr. Jens Harbott
parent 8f05a309d1
commit f193d1af3e
5 changed files with 15 additions and 3 deletions

View File

@ -958,7 +958,8 @@ cloudkitty_storage_backend: "influxdb"
####################### #######################
# Valid options are [ bind9, infoblox ] # Valid options are [ bind9, infoblox ]
designate_backend: "bind9" designate_backend: "bind9"
designate_ns_record: "sample.openstack.org" designate_ns_record:
- "ns1.example.org"
designate_backend_external: "no" designate_backend_external: "no"
designate_backend_external_bind9_nameservers: "" designate_backend_external_bind9_nameservers: ""
# Valid options are [ '', redis ] # Valid options are [ '', redis ]

View File

@ -4,8 +4,15 @@
description: Default BIND9 Pool description: Default BIND9 Pool
attributes: {} attributes: {}
ns_records: ns_records:
{% if designate_ns_record is string %}
- hostname: {{ designate_ns_record }}. - hostname: {{ designate_ns_record }}.
priority: 1 priority: 1
{% else %}
{% for host in designate_ns_record %}
- hostname: {{ host }}.
priority: 1
{% endfor %}
{% endif %}
nameservers: nameservers:
{% if designate_backend == 'bind9' %} {% if designate_backend == 'bind9' %}
{% for host in groups['designate-backend-bind9'] %} {% for host in groups['designate-backend-bind9'] %}

View File

@ -65,7 +65,9 @@ router_distributed = True
{% endif %} {% endif %}
{% if enable_designate | bool %} {% if enable_designate | bool %}
{% if designate_ns_record is string %}
dns_domain = {{ designate_ns_record }}. dns_domain = {{ designate_ns_record }}.
{% endif %}
external_dns_driver = designate external_dns_driver = designate
{% if neutron_plugin_agent == 'vmware_nsxv' %} {% if neutron_plugin_agent == 'vmware_nsxv' %}
nsx_extension_drivers = vmware_nsxv_dns nsx_extension_drivers = vmware_nsxv_dns

View File

@ -35,7 +35,8 @@ Configure Designate options in ``/etc/kolla/globals.yml``
.. code-block:: yaml .. code-block:: yaml
dns_interface: "eth1" dns_interface: "eth1"
designate_ns_record: "sample.openstack.org" designate_ns_record:
- "ns1.sample.openstack.org"
.. important:: .. important::

View File

@ -548,7 +548,8 @@
################### ###################
# Valid options are [ bind9 ] # Valid options are [ bind9 ]
#designate_backend: "bind9" #designate_backend: "bind9"
#designate_ns_record: "sample.openstack.org" #designate_ns_record:
# - "ns1.example.org"
# Valid options are [ '', redis ] # Valid options are [ '', redis ]
#designate_coordination_backend: "{{ 'redis' if enable_redis|bool else '' }}" #designate_coordination_backend: "{{ 'redis' if enable_redis|bool else '' }}"