1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# 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..."
. $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
if is_service_enabled horizon; then
echo_summary "Installing senlin dashboard"
install_senlin_dashboard
fi
cleanup_senlin
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring senlin"
configure_senlin
if is_service_enabled horizon; then
echo_summary "Configuring senlin dashboard"
config_senlin_dashboard
fi
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
if is_service_enabled horizon; then
cleanup_senlin_dashboard
fi
fi
fi
# Restore xtrace
$XTRACE
|