bebe21ae13
This reverts the workaround for the devstack plugin, as now the gate jobs pass(with the plugin and no devstack tree heat code) and make it only a devstack plugin. Change-Id: Ia8d88eca2dec301b692bbef3e1d8988f00e1936a Depends-On: I5b60422bf1f5fa78aa8f3383f7a222e0356d9e42
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# heat.sh - Devstack extras script to install heat
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "heat's plugin.sh was called..."
|
|
source $DEST/heat/devstack/lib/heat
|
|
(set -o posix; set)
|
|
|
|
if is_heat_enabled; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing heat"
|
|
# Use stack_install_service here to account for vitualenv
|
|
stack_install_service heat
|
|
echo_summary "Installing heatclient"
|
|
install_heatclient
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Cleaning up heat"
|
|
cleanup_heat
|
|
echo_summary "Configuring heat"
|
|
configure_heat
|
|
|
|
if is_service_enabled key; then
|
|
create_heat_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize heat
|
|
init_heat
|
|
|
|
# Start the heat API and heat taskmgr components
|
|
echo_summary "Starting heat"
|
|
start_heat
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_heat
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_heat
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|