Make sure Glance_image is executed after Keystone_endpoint

When running Keystone in WSGI, Glance_image is not run in the right
moment.
This patch aims to make sure Glance_image is run after creating Glance
endpoint Keystone resource by using the Puppet chain arrow.
Keystone_endpoint is actually the latest resource created by Keystone
providers to make Glance working.
If Glance_image resource is in the catalog, it will be executed when
keystone & glance are actually ready and not before.

Closes-Bug: #1488277
Change-Id: I97d1a77c5f4a67914738514d773ecbd4bfb2196c
This commit is contained in:
Emilien Macchi 2015-08-24 21:55:37 -04:00
parent 4e8e53bff3
commit afa0ed8122

View File

@ -183,6 +183,7 @@ class glance::keystone::auth(
if $configure_endpoint {
Keystone_endpoint["${region}/${real_service_name}"] ~> Service <| name == 'glance-api' |>
Keystone_endpoint["${region}/${real_service_name}"] -> Glance_image<||>
}
keystone::resource::service_identity { $auth_name: