Browse Source
This adds the actual devstack plugin, devstack should not run the heat code in the devstack project. Note that this is not yet configured to run in the gate. Change-Id: I8d0918a8f8bb8399793c7164d26739953710b3ecchanges/99/317599/1
4 changed files with 92 additions and 0 deletions
@ -0,0 +1,15 @@
|
||||
========================= |
||||
Enabling heat in DevStack |
||||
========================= |
||||
|
||||
1. Download DevStack:: |
||||
|
||||
git clone https://git.openstack.org/openstack-dev/devstack |
||||
cd devstack |
||||
|
||||
2. Add this repo as an external repository into your ``local.conf`` file:: |
||||
|
||||
[[local|localrc]] |
||||
enable_plugin heat https://git.openstack.org/openstack/heat |
||||
|
||||
3. Run ``stack.sh``. |
@ -0,0 +1,51 @@
|
||||
# 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_service_enabled h-eng h-api h-api-cfn h-api-cw; then |
||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then |
||||
echo_summary "Installing heat" |
||||
install_heat |
||||
echo_summary "Installing heatclient" |
||||
install_heatclient |
||||
echo_summary "Installing heat other" |
||||
install_heat_other |
||||
cleanup_heat |
||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then |
||||
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 |
||||
if [ "$HEAT_BUILD_PIP_MIRROR" = "True" ]; then |
||||
echo_summary "Building Heat pip mirror" |
||||
build_heat_pip_mirror |
||||
fi |
||||
fi |
||||
|
||||
if [[ "$1" == "unstack" ]]; then |
||||
stop_heat |
||||
fi |
||||
|
||||
if [[ "$1" == "clean" ]]; then |
||||
cleanup_heat |
||||
fi |
||||
fi |
||||
|
||||
# Restore xtrace |
||||
$XTRACE |
Loading…
Reference in new issue