Skip dependency on keystone endpoint if endpoint is not configured

Change-Id: Ic68cbca8768fa1efcffa17f66bd3040558b880fe
(cherry picked from commit cfc1fc6ea2)
This commit is contained in:
Takashi Kajinami 2021-09-21 16:42:38 +09:00
parent 743e79b6c6
commit 8f2b6b031c
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ class barbican::keystone::auth (
if $configure_user_role {
Keystone_user_role["${auth_name}@${tenant}"] ~> Anchor['barbican::service::end']
}
Keystone_endpoint["${region}/${service_name}::${service_type}"] ~> Anchor['barbican::service::end']
if $configure_endpoint {
Keystone_endpoint["${region}/${service_name}::${service_type}"] ~> Anchor['barbican::service::end']
}
keystone::resource::service_identity { 'barbican':
configure_user => $configure_user,