Merge "Add dns-integration setup to devstack plugin"

This commit is contained in:
Zuul 2017-12-14 20:14:08 +00:00 committed by Gerrit Code Review
commit 024d004168
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,11 @@
function configure_dns_extension {
neutron_ml2_extension_driver_add "dns_domain_ports"
}
function configure_dns_integration {
iniset $NEUTRON_CONF DEFAULT external_dns_driver designate
iniset $NEUTRON_CONF designate url "$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT/v2"
configure_auth_token_middleware $NEUTRON_CONF designate $NEUTRON_AUTH_CACHE_DIR designate
}
function post_config_dns_extension {
iniset $NEUTRON_CONF DEFAULT dns_domain openstackgate.local
}

View File

@ -39,6 +39,9 @@ if [[ "$1" == "stack" ]]; then
if is_service_enabled q-dns neutron-dns; then
configure_dns_extension
post_config_dns_extension
if is_service_enabled designate; then
configure_dns_integration
fi
fi
if is_service_enabled neutron-segments; then
configure_segments_extension