heat/devstack/plugin.sh
rabi ad4329d008 Remove unnecessary install_heat_other
Remove the redundant code for bulding a pip mirror
for heat agents. At present it's used by
test_server_software_config.py, which is disabled.

We may use RDO packages for the agents in the future,
when we plan to enable these tests.

Change-Id: I94e46927b0d0d7e93d8bf5e58eb27310f443a8bf
Closes-Bug: #1634717
2016-10-19 09:36:56 +05:30

49 lines
1.2 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_with_plugin
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize heat
init_heat_with_plugin
# Start the heat API and heat taskmgr components
echo_summary "Starting heat"
start_heat_with_plugin
fi
if [[ "$1" == "unstack" ]]; then
stop_heat
fi
if [[ "$1" == "clean" ]]; then
cleanup_heat
fi
fi
# Restore xtrace
$XTRACE