blob: a4dc7fbc5b1691f85969c90896caac6e8ef44fcd [file] [log] [blame]
Dean Troyerfc744f92014-01-27 13:45:21 -06001# trove.sh - Devstack extras script to install Trove
2
3if is_service_enabled trove; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/trove
7 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing Trove"
9 install_trove
10 install_troveclient
11 cleanup_trove
12 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
13 echo_summary "Configuring Trove"
14 configure_troveclient
15 configure_trove
16
17 if is_service_enabled key; then
18 create_trove_accounts
19 fi
20
21 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
22 # Initialize trove
23 init_trove
24
25 # Start the trove API and trove taskmgr components
26 echo_summary "Starting Trove"
27 start_trove
28 fi
29
30 if [[ "$1" == "unstack" ]]; then
31 stop_trove
32 fi
33fi