Denis Egorenko | a45a0a0 | 2013-10-01 16:03:39 +0000 | [diff] [blame] | 1 | # savanna.sh - DevStack extras script to install Savanna |
| 2 | |
| 3 | if is_service_enabled savanna; then |
| 4 | if [[ "$1" == "source" ]]; then |
| 5 | # Initial source |
| 6 | source $TOP_DIR/lib/savanna |
| 7 | source $TOP_DIR/lib/savanna-dashboard |
| 8 | elif [[ "$1" == "stack" && "$2" == "install" ]]; then |
| 9 | echo_summary "Installing Savanna" |
| 10 | install_savanna |
| 11 | if is_service_enabled horizon; then |
| 12 | install_savanna_dashboard |
| 13 | fi |
| 14 | elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then |
| 15 | echo_summary "Configuring Savanna" |
| 16 | configure_savanna |
| 17 | if is_service_enabled horizon; then |
| 18 | configure_savanna_dashboard |
| 19 | fi |
| 20 | elif [[ "$1" == "stack" && "$2" == "extra" ]]; then |
| 21 | echo_summary "Initializing Savanna" |
| 22 | start_savanna |
| 23 | fi |
| 24 | |
| 25 | if [[ "$1" == "unstack" ]]; then |
| 26 | stop_savanna |
| 27 | if is_service_enabled horizon; then |
| 28 | cleanup_savanna_dashboard |
| 29 | fi |
| 30 | fi |
| 31 | fi |