Migrate heat-engine element to svc-map

This patch migrates the heat-engine element from map-services
to svc-map by adding a svc-map file and adding the -a option to
os-svc-install script calls.

Change-Id: I1dc31cf388cb26996d693554d3250a60a9b0e010
This commit is contained in:
Ryan Brady 2014-11-12 18:34:01 -05:00
parent 95a4daa006
commit 9cd2fa921c
5 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -ue
set -o pipefail
# If https://bugs.launchpad.net/heat/+bug/1239377 is ever fixed we can
# configure heat to purge automatically and remove this.

View File

@ -1,9 +1,10 @@
#!/bin/bash
set -eu
set -o pipefail
cp -r /opt/stack/heat/etc/heat/environment.d /etc/heat
cp -r /opt/stack/heat/etc/heat/templates /etc/heat
ln -s $HEAT_VENV_DIR/bin/heat-manage /usr/local/bin/heat-manage
os-svc-daemon -i "$HEAT_VENV_DIR" heat-engine heat heat-engine
os-svc-daemon -a -i "$HEAT_VENV_DIR" heat-engine heat heat-engine

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -eux
set -o pipefail
if os-is-bootstrap-host ; then
sudo -u heat -- heat-manage db_sync

View File

@ -1,7 +1,8 @@
#!/bin/bash
set -eu
set -o pipefail
os-svc-enable -n heat-engine
os-svc-enable -an heat-engine
os-svc-restart -n heat-engine
os-svc-restart -an heat-engine

View File

@ -0,0 +1,3 @@
heat-engine:
default: openstack-heat-engine
debian: heat-engine