blob: f284354e1f4061de4b3673c11dc49666d31cdde9 [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"
Dean Troyerfc744f92014-01-27 13:45:21 -060014 configure_trove
15
16 if is_service_enabled key; then
17 create_trove_accounts
18 fi
19
20 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
21 # Initialize trove
22 init_trove
23
24 # Start the trove API and trove taskmgr components
25 echo_summary "Starting Trove"
26 start_trove
27 fi
28
29 if [[ "$1" == "unstack" ]]; then
30 stop_trove
31 fi
32fi