Sahara script modified with notification configuration

This change enable Sahara notifications if ceilometer is used

Partially implement: blueprint ceilometer-integration

Change-Id: I4ec79052194206481cfbbf0d848aa43bcb0c0660
This commit is contained in:
Vitaly Gridnev 2014-08-11 12:01:12 +00:00
parent 84744d8e38
commit e50fcb12d5

View File

@ -111,6 +111,14 @@ function configure_sahara {
iniset $SAHARA_CONF_FILE keystone_authtoken signing_dir $SAHARA_AUTH_CACHE_DIR
iniset $SAHARA_CONF_FILE keystone_authtoken cafile $KEYSTONE_SSL_CA
# Set configuration to send notifications
if is_service_enabled ceilometer; then
iniset $SAHARA_CONF_FILE DEFAULT enable_notifications "true"
iniset $SAHARA_CONF_FILE DEFAULT notification_driver "messaging"
iniset_rpc_backend sahara $SAHARA_CONF_FILE DEFAULT
fi
iniset $SAHARA_CONF_FILE DEFAULT verbose True
iniset $SAHARA_CONF_FILE DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL