blob: 2a349991efebc28b8e3b232602c49e2cd73cf54d [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
Sergey Lukjanov7ff84432014-03-10 20:04:51 +04007 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing sahara"
9 install_sahara
Sergey Lukjanova90898d2014-08-05 16:14:12 +040010 install_python_saharaclient
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040011 cleanup_sahara
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040012 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
13 echo_summary "Configuring sahara"
14 configure_sahara
15 create_sahara_accounts
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040016 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
17 echo_summary "Initializing sahara"
18 start_sahara
19 fi
20
21 if [[ "$1" == "unstack" ]]; then
22 stop_sahara
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040023 fi
24
25 if [[ "$1" == "clean" ]]; then
26 cleanup_sahara
27 fi
28fi