57bc6d167b
As described in [0] a new attribute ``dns_publish_fixed_ip`` is added to subnets, allowing to specify directly whether DNS records should be published for this subnet. This overrides the previous behaviour that makes this decision based on various properties of the network that the subnet is contained in, see [1]. [0] https://launchpad.net/bugs/1784879 [1] https://docs.openstack.org/neutron/latest/admin/config-dns-int-ext-serv.html Change-Id: I14605ead2694d9e9422b3d7b519aed2e3c340e2a Partial-Bug: 1784879
19 lines
744 B
Plaintext
19 lines
744 B
Plaintext
function configure_dns_extension {
|
|
neutron_ml2_extension_driver_add "subnet_dns_publish_fixed_ip"
|
|
}
|
|
function configure_dns_integration {
|
|
iniset $NEUTRON_CONF DEFAULT external_dns_driver designate
|
|
|
|
# Use new /dns based uri by default if no port is set.
|
|
if [[ -z "$DESIGNATE_SERVICE_PORT" ]]; then
|
|
iniset $NEUTRON_CONF designate url "$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST/dns/v2"
|
|
else
|
|
iniset $NEUTRON_CONF designate url "$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT/v2"
|
|
fi
|
|
|
|
configure_keystone_authtoken_middleware $NEUTRON_CONF designate designate
|
|
}
|
|
function post_config_dns_extension {
|
|
iniset $NEUTRON_CONF DEFAULT dns_domain openstackgate.local
|
|
}
|