blob: 80e07ff7b93eec07540cc2e3c5219e6a7166f427 [file] [log] [blame]
Sergey Lukjanov7ff84432014-03-10 20:04:51 +04001# sahara.sh - DevStack extras script to install Sahara
2
3if is_service_enabled sahara; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/sahara
7 source $TOP_DIR/lib/sahara-dashboard
8 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
9 echo_summary "Installing sahara"
10 install_sahara
11 cleanup_sahara
12 if is_service_enabled horizon; then
13 install_sahara_dashboard
14 fi
15 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
16 echo_summary "Configuring sahara"
17 configure_sahara
18 create_sahara_accounts
19 if is_service_enabled horizon; then
20 configure_sahara_dashboard
21 fi
22 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
23 echo_summary "Initializing sahara"
24 start_sahara
25 fi
26
27 if [[ "$1" == "unstack" ]]; then
28 stop_sahara
29 if is_service_enabled horizon; then
30 cleanup_sahara_dashboard
31 fi
32 fi
33
34 if [[ "$1" == "clean" ]]; then
35 cleanup_sahara
36 fi
37fi