sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 217 forks source link

[COOK-4231] Fix for group creation problem #38

Closed crawley closed 10 years ago

crawley commented 10 years ago

There may be a more elegant way to do this (than using "dynamic resources"), but this way works for me.

(There don't appear to be any tests for this Cookbook ... notwithstanding what Contributing.md says.)

jtimberman commented 10 years ago

What is the "group creation problem"? Is there a COOK ticket for this?

crawley commented 10 years ago

Ermm ... https://tickets.opscode.com/browse/COOK-4231 ... like the name of my branch. Basically, the problem is that the 'user' resource can end up creating a user whose primary group name/id doesn't match either the gid or the username. This fix deals with that by looking up the user's actual primary gid and using that for the SSH directory and files.

sethvargo commented 10 years ago

Messing with the run_context is generally frowned upon. This cookbook is about to undergo a large refactor.