feb28837f4
The current existing phases "post-config" and "extra" are not sufficient to allow local.conf overrides to extra type services because they run after the services are installed and configured. This commit introduces a new phase called "post-extra" that runs after these existing phases. With this change, users are able to leverage local.conf to provide overridden options to services like Tempest. Change-Id: I5d758eebfda804dd1d8cbc3d5cc35ef4dcc8c96f Closes-Bug: #1249085
33 lines
853 B
Bash
33 lines
853 B
Bash
# tempest.sh - DevStack extras script
|
|
|
|
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"
|
|
install_tempest
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
# Tempest config must come after layer 2 services are running
|
|
:
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
echo_summary "Initializing Tempest"
|
|
configure_tempest
|
|
init_tempest
|
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
|
# local.conf Tempest option overrides
|
|
:
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
# no-op
|
|
:
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
# no-op
|
|
:
|
|
fi
|
|
fi
|
|
|