blob: 75b702c70001fcd1d15ebedfcbb60d22b72743f5 [file] [log] [blame]
Dean Troyer768295e2013-01-09 13:42:03 -06001# tempest.sh - DevStack extras script
2
Dean Troyercdf3d762013-10-15 09:42:43 -05003if is_service_enabled tempest; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/tempest
7 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing Tempest"
Dean Troyer768295e2013-01-09 13:42:03 -06009 install_tempest
Dean Troyercdf3d762013-10-15 09:42:43 -050010 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
11 # Tempest config must come after layer 2 services are running
12 :
13 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
14 echo_summary "Initializing Tempest"
Dean Troyer768295e2013-01-09 13:42:03 -060015 configure_tempest
Attila Fazekas1d29d8b2013-01-07 15:51:32 +010016 init_tempest
Dean Troyer768295e2013-01-09 13:42:03 -060017 fi
Dean Troyer768295e2013-01-09 13:42:03 -060018
Dean Troyercdf3d762013-10-15 09:42:43 -050019 if [[ "$1" == "unstack" ]]; then
20 # no-op
21 :
22 fi
Dean Troyer768295e2013-01-09 13:42:03 -060023
Dean Troyercdf3d762013-10-15 09:42:43 -050024 if [[ "$1" == "clean" ]]; then
25 # no-op
26 :
27 fi
28fi
Dean Troyer768295e2013-01-09 13:42:03 -060029