Create Glance's database if glance-api is enabled
authorFlavio Percoco <flaper87@gmail.com>
Wed, 7 Dec 2016 14:16:41 +0000 (15:16 +0100)
committerFlavio Percoco <flaper87@gmail.com>
Wed, 7 Dec 2016 14:19:38 +0000 (15:19 +0100)
commita102d35f12e75bbf7fa9c5f91aeaef145f203143
treec64cb486a0db067c39afa862e64cd7eb0a219619
parent77c1ca1243fbc38210e9f6264c5c36b546d1a95a
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
manifests/profile/base/database/mysql.pp