Merge "Add DevStack support for coordination URL"

This commit is contained in:
Jenkins 2015-06-30 16:29:15 +00:00 committed by Gerrit Code Review
commit 1d32c94962
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,7 @@ DESIGNATE_NOTIFICATION_DRIVER=${DESIGNATE_NOTIFICATION_DRIVER:-}
DESIGNATE_NOTIFICATION_TOPICS=${DESIGNATE_NOTIFICATION_TOPICS:-notifications}
DESIGNATE_PERIODIC_RECOVERY_INTERVAL=${DESIGNATE_PERIODIC_RECOVERY_INTERVAL:-120}
DESIGNATE_PERIODIC_SYNC_INTERVAL=${DESIGNATE_PERIODIC_SYNC_INTERVAL:-1800}
DESIGNATE_COORDINATION_URL=${DESIGNATE_COORDINATION_URL:-}
# Public IP/Port Settings
DESIGNATE_SERVICE_PROTOCOL=${DESIGNATE_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
@ -118,6 +119,11 @@ function configure_designate {
iniset $DESIGNATE_CONF DEFAULT root-helper sudo designate-rootwrap $DESIGNATE_ROOTWRAP_CONF
iniset $DESIGNATE_CONF storage:sqlalchemy connection `database_connection_url designate`
# Coordination Configuration
if [[ -n "$DESIGNATE_COORDINATION_URL" ]]; then
iniset $DESIGNATE_CONF coordination backend_url $DESIGNATE_COORDINATION_URL
fi
# Install the policy file for the API server
cp $DESIGNATE_DIR/etc/designate/policy.json $DESIGNATE_CONF_DIR/policy.json
iniset $DESIGNATE_CONF DEFAULT policy_file $DESIGNATE_CONF_DIR/policy.json

View File

@ -65,6 +65,9 @@ ENABLED_SERVICES+=,designate,designate-central,designate-api,designate-pool-mana
# Set Notification topics
#DESIGNATE_NOTIFICATION_TOPICS=notifications
# Set coordination service URL (e.g. kazoo://localhost/)
#DESIGNATE_COORDINATION_URL=
# Other Devstack Config
# =====================