cookbook 'user_ssh', '= 0.1.0'
user_ssh (2) Versions 0.1.0 Follow1
A Chef recipe to manage user accounts and SSH keys from databags
cookbook 'user_ssh', '= 0.1.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
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.
Foodcritic Metric
0.1.0 failed this metric
FC015: Consider converting definition to a LWRP: /tmp/cook/c7772b7dced9e6a7e2f2bd0a/user_ssh/definitions/provider_account.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/c7772b7dced9e6a7e2f2bd0a/user_ssh/definitions/resource_account.rb:1
0.1.0 failed this metric
FC015: Consider converting definition to a LWRP: /tmp/cook/c7772b7dced9e6a7e2f2bd0a/user_ssh/definitions/resource_account.rb:1