Select Badges

Select Supported Platforms

Select Status

RSS

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

Creates tecRacer User on Unix Instances

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

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)

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

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

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.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

2.0.0 failed this metric

FC069: Ensure standardized license defined in metadata: tr-chef-cookbook-usermanagement/metadata.rb:1
FC078: Ensure cookbook shared under an OSI-approved open source license: tr-chef-cookbook-usermanagement/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness,supermarket,portability,deprecated ~FC031 and failure tags any