Files
senlin/devstack/plugin.sh
James E. Blair 34eaacfe32 Remove ERROR_ON_CLONE references
It is *never* acceptable to alter behavior based on this variable.
It defeats devstack gate testing.

Change-Id: I6c305468456742ac762da8b65e0831cd0c95c263
2015-09-23 15:35:07 -07:00

46 lines
1.1 KiB
Bash

# senlin.sh - Devstack extras script to install senlin
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set -o xtrace
echo_summary "senlin's plugin.sh was called..."
source $DEST/senlin/devstack/lib/senlin
(set -o posix; set)
if is_service_enabled sl-api sl-eng; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing senlin"
install_senlin
echo_summary "Installing senlinclient"
install_senlinclient
cleanup_senlin
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring senlin"
configure_senlin
if is_service_enabled key; then
create_senlin_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize senlin
init_senlin
# Start the senlin API and senlin taskmgr components
echo_summary "Starting senlin"
start_senlin
fi
if [[ "$1" == "unstack" ]]; then
stop_senlin
fi
if [[ "$1" == "clean" ]]; then
cleanup_senlin
fi
fi
# Restore xtrace
$XTRACE