Keystone endpoints should go before the service

This commit sets up a relationship in Class[swift::keystone::auth] so
  at to guarantee that all endpoints are setup before launching any
  swift services.

Change-Id: I95476d5a61787d5c27c46d9daa84f62911c24183
This commit is contained in:
Cody Herriges 2016-04-05 16:21:45 -07:00
parent b70f5287db
commit 6a43438150

View File

@ -282,6 +282,15 @@ class swift::keystone::auth(
fail('cinder::keystone::auth parameters service_name and service_name_s3 must be different.')
}
# Establish that keystone auth and endpoints are properly setup before
# managing any type of swift related service.
if $configure_endpoint {
Keystone_endpoint["${region}/${real_service_name}::object-store"] -> Swift::Service<||>
}
if $configure_s3_endpoint {
Keystone_endpoint["${region}/${real_service_name_s3}::s3"] -> Swift::Service<||>
}
keystone::resource::service_identity { 'swift':
configure_endpoint => $configure_endpoint,
configure_user => $configure_user,