blob: 63c4fd5ad591a9dab43d6069454b5aa1a680d1e9 [file] [log] [blame]
Malini Kamalambal9504bb32014-08-01 17:41:08 -04001# zaqar.sh - Devstack extras script to install Zaqar
2
3if is_service_enabled zaqar-server; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/zaqar
7 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing Zaqar"
9 install_zaqarclient
10 install_zaqar
11 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
12 echo_summary "Configuring Zaqar"
13 configure_zaqar
14 configure_zaqarclient
15
16 if is_service_enabled key; then
17 create_zaqar_accounts
18 fi
19
20 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
21 echo_summary "Initializing Zaqar"
22 init_zaqar
23 start_zaqar
24 fi
25
26 if [[ "$1" == "unstack" ]]; then
27 stop_zaqar
28 fi
29fi