sous-chefs / users

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

Allow custom authorized keys file #419

Closed mengesb closed 6 years ago

mengesb commented 6 years ago

Description

Add a property auth_keys to customize the filename for the user's authorized keys.

I feel this is a nice medium change, as modifying data bag content is data modification - and in a multi-os deployment or multi-environment scenario you may not always want to effectively hard-code the path or file name of the authorized keys file. This is more portable and wrapper friendly allowing users to make programmatic choices in providing this value to the custom resource.

I also fixed the opensuse test where the user created doesn't create a same-named group, but instead puts the user in the users group.

Issues Resolved

Check List

tas50 commented 6 years ago

Closing in favor of #423 so we can do this directly in the data bag where it belongs