From: Thomas Goirand Date: Thu, 8 Jan 2015 16:32:40 +0000 (+0100) Subject: * Sets heat/configure_db to false by default. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9e47e818e6476928199e4692d6e24c087bd78853;p=openstack-build%2Fheat-build.git * Sets heat/configure_db to false by default. * Only calls pkgos_dbc_postinst and su heat -c "heat-manage db_sync" if heat/configure_db is set to true (cherry picked from commit 8b3aa4cb3a805ad28e5dd501fd4488eec095ce50) Rewritten-From: 3770643c101eabe2c1863e805803361ec8d87d87 --- diff --git a/trusty/debian/heat-common.postinst.in b/trusty/debian/heat-common.postinst.in index da8bd765..91490018 100644 --- a/trusty/debian/heat-common.postinst.in +++ b/trusty/debian/heat-common.postinst.in @@ -19,15 +19,22 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then chown heat:heat /var/lib/heat /etc/heat pkgos_write_new_conf heat heat.conf - pkgos_dbc_postinst ${CONF} database connection heat $@ + db_get glance/configure_db + if [ "$RET" = "true" ] ; then + pkgos_dbc_postinst ${CONF} database connection heat $@ + fi pkgos_rabbit_write_conf ${CONF} DEFAULT heat pkgos_write_admin_creds ${CONF} keystone_authtoken heat pkgos_register_endpoint_postinst heat heat orchestration "Heat Orchestration API" 8004 /v1/'%(tenant_id)s' # This is the equivalent of db-sync: - su heat -c "heat-manage db_sync" + db_get glance/configure_db + if [ "$RET" = "true" ] ; then + su heat -c "heat-manage db_sync" + fi chown -R heat:adm /var/log/heat chmod 0750 /var/log/heat + db_stop fi #DEBHELPER# diff --git a/trusty/debian/heat-common.templates b/trusty/debian/heat-common.templates index 281d6e4e..d2744870 100644 --- a/trusty/debian/heat-common.templates +++ b/trusty/debian/heat-common.templates @@ -80,7 +80,7 @@ _Description: Name of the region to register: Template: heat/configure_db Type: boolean -Default: true +Default: false _Description: Set up a database for heat-common? No database has been set up for heat-common to use. Before continuing, you should make sure you have the following information: