blob: f177766d3b1bdf76822eca686bda719a332de4b6 [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"
Andrew Lazarevb3130482014-12-16 14:36:59 -080018 sahara_register_images
Sergey Lukjanov7ff84432014-03-10 20:04:51 +040019 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