cookbook 'r1337-linux-users', '~> 0.1.1'
r1337-linux-users (2) Versions 0.1.1 Follow0
Mange users and common groups on Linux systems
cookbook 'r1337-linux-users', '~> 0.1.1', :supermarket
knife supermarket install r1337-linux-users
knife supermarket download r1337-linux-users
Chef Cookbook - Linux Users
This Chef cookbook will add/update/remove users and common groups on Linux systems
Changes Performed
- Configure local users and common groups according to contents of the data bag specified in the ['r1337-linux-users']['users_bag'] attribute
Requirements
- Chef (Tested on Chef 13.6.4)
- Linux chef-clients (Tested on Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, and CentOS 7.2 but kitchen will let you test anything you want)
- The apt cookbook from Chef Supermarket
- The users cookbook from Chef Supermarket
- the line cookbook from Chef Supermarket
- the zap cookbook from Chef Supermarket
Installation Tips
- We personally use Berks to install this into Chef servers, because it will grab the dependencies for you as well.
- You must set the attribute ['r1337-linux-users']['users_bag'] in your environment so it points at the correct data bag.
- We recommend setting this attribute at an environment or role level depending on what makes sense for your organization.
Limitations
- None so far :)
Known Issues
- None so far :)
users Data Bag Format
{
"id": "david",
"password": "$6$example2$xc7NaKOwWWOBoGdSOP.mUgy21MNMjmdHsRuiVAmoMLpQ0tr42xPxWhOWNCPvCClV8lpE3zKr8.TowR0ARoi3a1",
"ssh_keys": [
"ssh-rsa AAAAB3NzaC1yc2EAAAAD blah blah",
"ssh-rsa AAAAB3NzaC1yc2EAAAAD blah blah"
],
"groups": [ "sysadmins" ],
"shell": "\/bin\/bash",
"comment": "David"
}
Use Cases
Used to manage user deployment, key/permissions enforcement, and removal on Linux systems from a central repository.
Donate To Support This Chef Cookbook
Route 1337, LLC operates entirely on donations. If you find these scripts useful, please consider contacting us about how to donate.
Thank you for your support!
Dependent cookbooks
apt >= 0.0.0 |
users >= 0.0.0 |
line >= 0.0.0 |
zap >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Linux Users - Changelog
A list of all the changes made to this cookbook
Version 0.1.1
- Removing stale cryptocurrency wallets from donation section of README
Version 0.1.0
- Initial Release
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 passed this metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number