Remove domain role from designate service user

This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
mmembership cannot be tacked on later. This resource gave the user the
role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).

We add the domain_name attribute that creates the designate user in
the desired domain. Note that this change needs a sufficiently recent
openstackclient cookbook -- otherwise the domain_name attribute is
ignored (which does not matter as long as the designate user is to be
created in the Default domain).
This commit is contained in:
Roger Luethi 2017-11-09 14:19:57 +01:00
parent 6f2d894daf
commit be7279b841
1 changed files with 1 additions and 8 deletions

View File

@ -83,6 +83,7 @@ end
# Register Service User
openstack_user service_user do
project_name service_project_name
domain_name service_domain_name
password service_pass
connection_params connection_params
end
@ -94,11 +95,3 @@ openstack_user service_user do
connection_params connection_params
action :grant_role
end
openstack_user service_user do
domain_name service_domain_name
role_name service_role
user_name service_user
connection_params connection_params
action :grant_domain
end