Closed cringdahl closed 6 years ago
@cringdahl If you're still interested in adding this can you rebase it against the current state of the cookbook and add to the readme showing how you would use this functionality. It seems pretty useful, but without documentation no one will find it.
I'm going to close this out since the change has diverged from master and we haven't heard back about a rebase. If this is still something you want to get merged in please open a new PR against the current master state.
Description
You can now remove users from groups via the users cookbook. Simply add
"old_groups"
to your user data bag, add the group you want removed, and remove the old group from"groups"
, and converge.Checks:
"old_groups"
is optional in the data bag."groups"
and"old_groups"
, the user is still removed after a chef-client run.Check List