957751584a
Change-Id: I46047b57cc54abc79b8589b16236e091886d926d
73 lines
1.7 KiB
Bash
73 lines
1.7 KiB
Bash
# Monasca DevStack plugin
|
|
#
|
|
# Install and start Monasca service in devstack
|
|
#
|
|
# To enable Monasca in devstack add an entry to local.conf that
|
|
# looks like
|
|
#
|
|
# [[local|localrc]]
|
|
# enable_plugin monasca git://git.openstack.org/stackforge/monasca-api
|
|
#
|
|
# By default all Monasca services are started (see
|
|
# devstack/settings). To disable a specific service use the
|
|
# disable_service function. For example to turn off notification:
|
|
#
|
|
# disable_service monasca-notification
|
|
#
|
|
# Several variables set in the localrc section adjust common behaviors
|
|
# of Ceilometer (see within for additional settings):
|
|
#
|
|
# EXAMPLE VARS HERE
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
function install_monasca {
|
|
:
|
|
}
|
|
|
|
function init_monasca {
|
|
:
|
|
}
|
|
|
|
function configure_monasca {
|
|
:
|
|
}
|
|
|
|
# check for service enabled
|
|
if is_service_enabled monasca; then
|
|
|
|
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
|
# Set up system services
|
|
echo_summary "Configuring Monasca system services"
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
# Perform installation of service source
|
|
echo_summary "Installing Monasca"
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
# Configure after the other layer 1 and 2 services have been configured
|
|
echo_summary "Configuring Monasca"
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize and start the Monasca service
|
|
echo_summary "Initializing Monasca"
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
# Shut down Monasca services
|
|
# no-op
|
|
:
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
# Remove state and transient data
|
|
# Remember clean.sh first calls unstack.sh
|
|
# no-op
|
|
:
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE |