From 826e4509363ff6415a257ce1ff9ea13af390d47d Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 7 Jan 2015 17:52:05 +1000 Subject: [PATCH] Add support for enabling heat adopt and abandon This is by default disabled, but we need to enable it to test it in the gate. Change-Id: I2339ebcaf4bd6308041675bcd35c0b70206e2e5e --- lib/heat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/heat b/lib/heat index 49ed5331aa..e3e5d0eb65 100644 --- a/lib/heat +++ b/lib/heat @@ -38,6 +38,7 @@ HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat} HEAT_STANDALONE=`trueorfalse False $HEAT_STANDALONE` +HEAT_ENABLE_ADOPT_ABANDON=`trueorfalse False $HEAT_ENABLE_ADOPT_ABANDON` HEAT_CONF_DIR=/etc/heat HEAT_CONF=$HEAT_CONF_DIR/heat.conf HEAT_ENV_DIR=$HEAT_CONF_DIR/environment.d @@ -152,6 +153,11 @@ function configure_heat { iniset $HEAT_CONF clients_cinder ca_file $SSL_BUNDLE_FILE fi + if [[ "$HEAT_ENABLE_ADOPT_ABANDON" = "True" ]]; then + iniset $HEAT_CONF DEFAULT enable_stack_adopt true + iniset $HEAT_CONF DEFAULT enable_stack_abandon true + fi + # heat environment sudo mkdir -p $HEAT_ENV_DIR sudo chown $STACK_USER $HEAT_ENV_DIR