Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

common_auth (8) Versions 0.1.4

Resources to help manage Linux users, groups, sudo and openssh

Berkshelf/Librarian
Policyfile
Knife
cookbook 'common_auth', '= 0.1.4'
cookbook 'common_auth', '= 0.1.4', :supermarket
knife cookbook site install common_auth
knife cookbook site download common_auth
README
Dependencies
Quality

common_auth cookbook

A cookbook which will create users, group, sudoers and configure openssh with the design to be based on group policies.

Requiremetns

This cookbook requires Chef 12.7.0 or later.

Platform

Ubuntu

Document

Comments will be found throughout the attribute, resource and library files so that the documentation and code are more closely linked. What's found in this Readme will be more of a high-level overview.

Attributes

The goal of this cookbook is to manage authentication related resources through a mixture of node attributes and data_bag_item.

common_auth[:groups]

  • data_bag: The data bag which contains group definitions
  • config: Hash of group_name => resource properties for attribute overrides
  • managed: Hash of users which have previously been managed (managed attribute)

common_auth[:users]

  • data_bag: The data bag which contains user definitions
  • config: Hash of user_name => resource properties for attribute overrides
  • managed: Hash of users which have previously been managed (managed attribute)
  • default: Hash of default user resource properties

common_auth[:sudoers]

Hash containing suders resource definitions

common_auth[:openssh][:allow_groups]

Hash of OpenSSH AllowGroup directives that will override the standard openssh cookbook attributes.

common_auth[:openssh][:match_groups]

Hash of OpenSSH Match group statements

Resources

common_user_account

Resource which will be responsible for creating a user resource and optionally a common_user_keys resource. Additionally, the creation or deletion of these attributes will be stored in node attributes to ensure that users are deleted if ommitted from configuration.

common_user_keys

Resource which will manage a user's ssh public authorized_keys, ssh private rsa keys and will automatically create an ssh_wrapper script for each private key.

common_group_account

Resource which will be responsible for creating a group resource and optinially a sudoers resource.

DataBag Formats

DataBagItem formats should match the resource definitions for both user with an optional keys property matching common_user_keys as well as group items.

Foodcritic Metric
            

0.1.4 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/authorization-sudo.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-groups.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-groups.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-groups.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-openssh.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-openssh.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-openssh.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-sudoers.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-sudoers.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-sudoers.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-sudoers.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-users.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-users.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-users.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-users.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-users.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_linux.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/openssh.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/openssh.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:69
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:78
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/openssh.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/openssh.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/openssh.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/openssh.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/sudo.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:50
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:51
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:53
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:53
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:75
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:76
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:78
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:87
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:95
FC002: Avoid string interpolation where not required: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:27
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:28
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/auth.rb:69
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/recipes/default.rb:3
FC016: LWRP does not declare a default action: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_group_account.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_account.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/resources/common_user_keys.rb:1
FC046: Attribute assignment uses assign unless nil: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-openssh.rb:5
FC046: Attribute assignment uses assign unless nil: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-openssh.rb:15
FC046: Attribute assignment uses assign unless nil: /tmp/cook/dbd49215b34ca733f83ab4bc/common_auth/attributes/common_auth-sudoers.rb:4