This module manages users and ssh keys. Both authorized_keys and ssh keys are supported. Requires stdlib and works with puppet >= 2.7
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' } }
- Example: { "root-key-1" => { key => '
- keys: Hash of optional keys.
- Example: { "root-key-1" => { priv => '
<private key>
', pub => '<public key>
', type => 'ssh-rsa', user => 'root' } }
- Example: { "root-key-1" => { priv => '
- ensure: Ensure present or absent for this user
Valid types for keys are ssh-rsa
and ssh-dsa
Sample usage:
users {'foo':
ensure => present
}
Tested on RedHat and derivatives only.
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.