This is by default disabled, but we need to enable
it to test it in the gate.
Change-Id: I2339ebcaf4bd6308041675bcd35c0b70206e2e5e
| ... | ... |
@@ -38,6 +38,7 @@ HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools |
| 38 | 38 |
HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates |
| 39 | 39 |
HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
|
| 40 | 40 |
HEAT_STANDALONE=`trueorfalse False $HEAT_STANDALONE` |
| 41 |
+HEAT_ENABLE_ADOPT_ABANDON=`trueorfalse False $HEAT_ENABLE_ADOPT_ABANDON` |
|
| 41 | 42 |
HEAT_CONF_DIR=/etc/heat |
| 42 | 43 |
HEAT_CONF=$HEAT_CONF_DIR/heat.conf |
| 43 | 44 |
HEAT_ENV_DIR=$HEAT_CONF_DIR/environment.d |
| ... | ... |
@@ -152,6 +153,11 @@ function configure_heat {
|
| 152 | 152 |
iniset $HEAT_CONF clients_cinder ca_file $SSL_BUNDLE_FILE |
| 153 | 153 |
fi |
| 154 | 154 |
|
| 155 |
+ if [[ "$HEAT_ENABLE_ADOPT_ABANDON" = "True" ]]; then |
|
| 156 |
+ iniset $HEAT_CONF DEFAULT enable_stack_adopt true |
|
| 157 |
+ iniset $HEAT_CONF DEFAULT enable_stack_abandon true |
|
| 158 |
+ fi |
|
| 159 |
+ |
|
| 155 | 160 |
# heat environment |
| 156 | 161 |
sudo mkdir -p $HEAT_ENV_DIR |
| 157 | 162 |
sudo chown $STACK_USER $HEAT_ENV_DIR |