Create Glance's database if glance-api is enabled

Instead of checking for glance_registry_enabled, we should be checking
for glance_api_enabled. The glance-api v1 depends on the registry, which
means the database will be created but glance-api v2 doesn't which means
that not deploying the registry would result in the glance database not
being created. On the other hand, glance-registry is never deployed
without glance-api

Change-Id: Ief25dafb65f7a043fbb3d16f1d7ef834c9947a93
This commit is contained in:
Flavio Percoco 2016-12-07 15:16:41 +01:00
parent 77c1ca1243
commit a102d35f12

View File

@ -150,7 +150,7 @@ class tripleo::profile::base::database::mysql (
if hiera('cinder_api_enabled', false) { if hiera('cinder_api_enabled', false) {
include ::cinder::db::mysql include ::cinder::db::mysql
} }
if hiera('glance_registry_enabled', false) { if hiera('glance_api_enabled', false) {
include ::glance::db::mysql include ::glance::db::mysql
} }
if hiera('gnocchi_api_enabled', false) { if hiera('gnocchi_api_enabled', false) {