Manage UID/GID with puppet
Set uid and gid values for users that puppet creates so they are consistent across all systems. Pick some arbitrary values for them and set them for all current users. Remove users who haven't been around for a while (their ssh keys should all be removed at this point). I do not know what puppet will do with existing users (whether it will attempt to change their entries or not), so do not merge this change until all existing servers have been updated. Change-Id: Id77e767af792f41fe2f8551953a2cf621323b373
This commit is contained in:
parent
e7cdec3736
commit
d25c47cbd7
@ -10,17 +10,21 @@ define user::virtual::localuser(
|
||||
$old_keys = [],
|
||||
$shell = '/bin/bash',
|
||||
$home = "/home/${title}",
|
||||
$uid = unset,
|
||||
$gid = unset,
|
||||
$managehome = true
|
||||
) {
|
||||
|
||||
group { $title:
|
||||
ensure => present,
|
||||
gid => $gid,
|
||||
}
|
||||
|
||||
user { $title:
|
||||
ensure => present,
|
||||
comment => $realname,
|
||||
gid => $title,
|
||||
uid => $uid,
|
||||
gid => $gid,
|
||||
groups => $groups,
|
||||
home => $home,
|
||||
managehome => $managehome,
|
||||
|
Loading…
Reference in New Issue
Block a user