2013-01-09 13:42:03 -06:00
|
|
|
# tempest.sh - DevStack extras script
|
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if is_service_enabled tempest; then
|
|
|
|
if [[ "$1" == "source" ]]; then
|
|
|
|
# Initial source
|
|
|
|
source $TOP_DIR/lib/tempest
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
|
|
echo_summary "Installing Tempest"
|
2013-01-09 13:42:03 -06:00
|
|
|
install_tempest
|
2013-10-15 09:42:43 -05:00
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
|
|
# Tempest config must come after layer 2 services are running
|
2014-03-03 14:31:29 -06:00
|
|
|
create_tempest_accounts
|
2013-10-15 09:42:43 -05:00
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
|
|
echo_summary "Initializing Tempest"
|
2013-01-09 13:42:03 -06:00
|
|
|
configure_tempest
|
2013-01-07 15:51:32 +01:00
|
|
|
init_tempest
|
2013-11-07 12:12:35 -08:00
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
|
|
|
# local.conf Tempest option overrides
|
|
|
|
:
|
2013-01-09 13:42:03 -06:00
|
|
|
fi
|
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
|
|
# no-op
|
|
|
|
:
|
|
|
|
fi
|
2013-01-09 13:42:03 -06:00
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
|
|
# no-op
|
|
|
|
:
|
|
|
|
fi
|
|
|
|
fi
|
2013-01-09 13:42:03 -06:00
|
|
|
|