Skip to content

desalvo/puppet-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-users

Table of Contents

  1. Overview
  2. Parameters
  3. Usage
  4. Limitations
  5. Contributors
  6. Release Notes

Overview

This module manages users and ssh keys. Both authorized_keys and ssh keys are supported. Requires stdlib and works with puppet >= 2.7

Parameters

The following parameters are supported:

  • name: (namevar) The user name. Value defaults to the resource's title if omitted.
  • uid: The user ID; must be specified numerically. If omitted then one will be chosen automatically.
  • gid: The user's primary group. Can be specified numerically or by name.
  • groups: Groups to which the user belongs. Primary group should not be listed here.
  • homepath: Home dir path, defaults to '/home'.
  • authorized_keys: Hash of optional authorized keys.
    • Example: { "root-key-1" => { key => '<public key>', type => 'ssh-rsa', user => 'root' } }
  • keys: Hash of optional keys.
    • Example: { "root-key-1" => { priv => '<private key>', pub => '<public key>', type => 'ssh-rsa', user => 'root' } }
  • ensure: Ensure present or absent for this user

Valid types for keys are ssh-rsa and ssh-dsa

Usage

Sample usage:

users {'foo':
   ensure => present
}

Limitations

Tested on RedHat and derivatives only.

Contributors

Release Notes

0.2.0

  • Simplified parameter list and removal of unsupported parameters (christopher-hopper)

0.1.1

  • Fix typo in dependencies

0.1.0

  • Initial version.

About

Puppet module to manage users and ssh keys

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •