Closed Raboo closed 7 years ago
The cookbook is working as expected based on what you've asked for it to do based on your description. The resource does not have a defined excluded members attribute so doesn't manage deleting users from groups. We may be missing some information here so reopen if you have additional information about this.
Sorry, was my bad, I had same user in two different data bags.
Thanks for the update.
Cookbook version
5.0.0
Chef-client version
12.19.36
Platform Details
Ubuntu 16.04
Scenario:
I'm creating a user and group called deploy from users_system data bag.
Then I create ops users from data bag users_ops.
Then I create dev users from data bag users_dev
ops users used to have
"groups": [ "users", "admin", "sudo", "adm", "deploy", "ops" ]
. Now ops have"groups": [ "users", "admin", "sudo", "adm", "ops" ]
dev have"groups": [ "users", "admin", "sudo", "adm", "deploy", "ops" ]
.But ops users are not removed from the deploy group, bug, feature or misuse?
Steps to Reproduce:
re-run chef-client.
Expected Result:
I expected to that ops users would have been removed from deploy group.
Actual Result:
ops users are not removed from deploy group.