Select Badges

Select Supported Platforms

Select Status

RSS

tr-chef-cookbook-usermanagement (19) Versions 2.2.3

Creates tecRacer User on Unix Instances

Policyfile
Berkshelf
Knife
cookbook 'tr-chef-cookbook-usermanagement', '= 2.2.3', :supermarket
cookbook 'tr-chef-cookbook-usermanagement', '= 2.2.3'
knife supermarket install tr-chef-cookbook-usermanagement
knife supermarket download tr-chef-cookbook-usermanagement
README
Dependencies
Changelog
Quality 43%

tr-chef-cookbook-usermanagement

With this cookbook you will get a usermanagement, where tecRacer users will be created by default.
The Public Keys are stored on a S3 Bucket, named ssh-pub. All users will be created with sudo rights with help from sudoers.d.

In a List:
- Installs prequesites (AWS CLI + jq)
- List users public keys from S3 Bucket
- Adding users from generated List and sets sudoer.d file with sudo rights
- Disables default user

Each Public Key within the S3 Bucket have to be named with the the customers mail address (see tecRacer example)

!!! Important !!!
Give S3 ReadOnly Access to S3 Bucket ssh-pub for each instance, where this cookbook is used!
!!! Important !!!

Usage

  1. Use default recipe in RunList
  2. Use json to add customers user generation and / or to change S3 Bucket
{
  "tr-usermanagement": {
    "groups": [ "tecracer", "<customer-project>" ],
    "s3bucket": "",
    "s3region": ""
  }
}

Attributes

The attributes used by this cookbook:

Attribute Description Type Default
groups Per default tecracer is set Array tecracer
s3bucket Bucket Name, where the Key files are stored String ssh-pub
s3region Bucket Region, where the Bucket is in String eu-central-1

Recipes

default

  • This recipe manages all mentioned before

License and Authors

All rights reserved. This book or any portion thereof may not be reproduced or used in any manner whatsoever
without the express written permission of the publisher except for the use of brief quotations in a book review.

Dependent cookbooks

tr-chef-cookbook-aws-cli >= 0.0.0
tr-chef-cookbook-msp-toolbox >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

Version 2.2.3

  • Change Readme for json syntax (USERMGMT-16)
  • Add information to README to use S3 ReadOnly Access for ssh-pub Bucket (USERMGMT-15)

Version 2.2.2

  • Adding Foodcritic

Version 2.2.1

  • Fixing bug, which allows login with default user (USERMGMT-14)

Version 2.2.0

  • Adding Download Folder for ssh-keys (USERMGMT-13)

Version 2.1.2

  • Fixing Bug when using same groups (USERMGMT-12)

Version 2.1.1

  • Remove EPEL Installation for CentOS and RedHat (USERMGMT-11)

Version 2.1.0

  • Adding Support for CentOS 7 (USERMGMT-8)
  • Adding Support for Red Hat 7 (USERMGMT-4)

Version 2.0.0

  • Adding possibility to add customers (USERMGMT-1)
  • Adding support for Ubuntu 14.04 and Amazon Linux (USERMGMT-5 + USERMGMT-6)
  • Adding default users lock (USERMGMT-3)
  • Changing method to receive usernames (USERMGMT-9)
  • Changing userlist.json to userlist.txt (USERMGMT-7)
  • Updating README (USERMGMT-10)

Version 1.1.1

  • Creating Changelog
  • Fixing bug for userlist.json

Collaborator Number Metric
            

2.2.3 passed this metric

Foodcritic Metric
            

2.2.3 passed this metric