Designate: miniDNS and bind9 instances on the proper networks

This changes the listen/bind address for the designate's miniDNS
instances from "all" to the internal API network. It also properly
configures the designate BIND backend to be on the external network.
(Both will default to ctlplane if it is absent)

Change-Id: I5e900354676a30ae8cf53d0a2f4db0201f05207d
This commit is contained in:
Brent Eagles 2022-01-10 20:39:19 +00:00
parent a1aa351cf3
commit acf032a098
2 changed files with 8 additions and 3 deletions

View File

@ -107,6 +107,12 @@ outputs:
config_settings:
map_merge:
- get_attr: [DesignateBase, role_data, config_settings]
- designate::mdns::listen:
str_replace:
template:
"%{hiera('$NETWORK')}:5354"
params:
$NETWORK: {get_param: [ServiceNetMap, DesignateMdnsNetwork]}
- designate::db::database_connection:
make_url:
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
@ -131,9 +137,6 @@ outputs:
- designate_workers_zero
- {}
- designate::mdns::workers: {get_param: DesignateWorkers}
- designate::mdns::listen:
- '0.0.0.0:5354'
- '[::]:5354'
service_config_settings:
mysql:
designate::db::mysql::password: {get_param: DesignatePassword}

View File

@ -418,6 +418,8 @@ parameter_defaults:
PacemakerNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }}
PacemakerRemoteNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }}
DesignateApiNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }}
DesignateMdnsNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }}
DesignateBindNetwork: {{ _service_nets.get('external', 'ctlplane') }}
BINDNetwork: {{ _service_nets.get('external', 'ctlplane') }}
EtcdNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }}
# HaproxyNetwork currently only controls the haproxy.stats network binding