Simplify definition to ensure keystone resource creation

Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.

Change-Id: I84ad764718f7dbd7b9c8209b2cd29bf531dff4c2
This commit is contained in:
Takashi Kajinami 2022-02-07 00:24:17 +09:00
parent 9f113400cc
commit b4a725b354

View File

@ -98,13 +98,7 @@ class watcher::keystone::auth (
$real_service_name = pick($service_name, $auth_name)
if $configure_user_role {
Keystone_user_role["${auth_name}@${tenant}"] ~> Anchor['watcher::service::end']
}
if $configure_endpoint {
Keystone_endpoint["${region}/${real_service_name}::${service_type}"] ~> Anchor['watcher::service::end']
}
Keystone::Resource::Service_identity['watcher'] -> Anchor['watcher::service::end']
keystone::resource::service_identity { 'watcher':
configure_user => $configure_user,