devstack/extras.d/70-savanna.sh
Sergey Lukjanov de2057290a Improve savanna keystone auth configuration
We're doing to use common keystone configuration approach - section
keystone_authtoken with config opts from the python-keystoneclient
auth_token middleware.

Change-Id: Ibbe0c76ee3b00045f5cb5134bd7661e9cef6ccdd
2014-02-20 01:56:17 +04:00

38 lines
1.1 KiB
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
cleanup_savanna
if is_service_enabled horizon; then
install_savanna_dashboard
fi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Savanna"
configure_savanna
create_savanna_accounts
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
if [[ "$1" == "clean" ]]; then
cleanup_savanna
fi
fi