cookbook 'user_ssh', '~> 0.2.0'
user_ssh (2) Versions 0.2.0 Follow1
A Chef recipe to manage user accounts and SSH keys from databags
cookbook 'user_ssh', '~> 0.2.0', :supermarket
knife supermarket install user_ssh
knife supermarket download user_ssh
user_ssh cookbook
Description
This cookbook extends the user_account
LWRP from fnichol/chef-user to support modification of the home folder after creation of the account.
This allows for the creation of the user account in a specific folder and later modification of the corresponding /etc/passwd
record. This way some Solaris setups (with auto_home
, for instance) work out of the box.
In addition, a modified version of the data_bat
recipe is provided, to allow for the use of a wildcard when specifying the list of users (this will trigger the creation of all users in data bags) and creation of groups in two stages (first creation, then addition of users to groups).
Requirements
Usage
Simply include this cookbook as a dependency in metadata.rb
and the user_ssh_account
resource will be available.
To use recipe[user_ssh::data_bag]
, follow the same approach as for the fnichol/chef-user recipe.
librarian-chef install
Attributes
To generate the value for the password, you can use:
openssl passwd -1 "theplaintextpassword"
Recipes
Author
Author :: [Tnarik Innael](tnarik@lecafeautomatique.co.uk)
Author (Original data_bag recipe) :: [Fletcher Nichol](fnichol@nichol.ca)
Based on
The data_bag
recipe from fnichol/chef-user.
Copyright 2011, Fletcher Nichol
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
user >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 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.2.0 failed this metric
FC066: Ensure chef_version is set in metadata: user_ssh/metadata.rb:1
FC069: Ensure standardized license defined in metadata: user_ssh/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
0.2.0 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.2.0 failed this metric
FC066: Ensure chef_version is set in metadata: user_ssh/metadata.rb:1
FC069: Ensure standardized license defined in metadata: user_ssh/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
FC069: Ensure standardized license defined in metadata: user_ssh/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
0.2.0 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