a45a0a0276
Added services Savanna, Savanna Dashboard, Savanna python client. Implements blueprint devstack-savanna-support Implements blueprint devstack-integration Change-Id: I8725f59a0cc9aef4817988470313136c56711cf1
32 lines
971 B
Bash
32 lines
971 B
Bash
# savanna.sh - DevStack extras script to install Savanna
|
|
|
|
if is_service_enabled savanna; then
|
|
if [[ "$1" == "source" ]]; then
|
|
# Initial source
|
|
source $TOP_DIR/lib/savanna
|
|
source $TOP_DIR/lib/savanna-dashboard
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing Savanna"
|
|
install_savanna
|
|
if is_service_enabled horizon; then
|
|
install_savanna_dashboard
|
|
fi
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring Savanna"
|
|
configure_savanna
|
|
if is_service_enabled horizon; then
|
|
configure_savanna_dashboard
|
|
fi
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
echo_summary "Initializing Savanna"
|
|
start_savanna
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_savanna
|
|
if is_service_enabled horizon; then
|
|
cleanup_savanna_dashboard
|
|
fi
|
|
fi
|
|
fi
|