blob: 1a67c2960cfbac293f335948e0e67c6fe824e7af [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
Sergey Lukjanova90898d2014-08-05 16:14:12 +040011 install_python_saharaclient
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040012 cleanup_sahara
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040013 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
14 echo_summary "Configuring sahara"
15 configure_sahara
16 create_sahara_accounts
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040017 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
18 echo_summary "Initializing sahara"
19 start_sahara
20 fi
21
22 if [[ "$1" == "unstack" ]]; then
23 stop_sahara
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040024 fi
25
26 if [[ "$1" == "clean" ]]; then
27 cleanup_sahara
28 fi
29fi