I have a define that looks like this:
define user::sys_user($fullname, $uid, $groups, $shell='/bin/bash',
$authkey, $authkey_type=rsa) {
$username = "sys_${name}"
group { $username:
gid => $uid,
}
user { $username:
require => Group[$username],
ensure => present,
uid => $uid,
gid => $uid,
groups => $groups,
comment => $fullname,
shell => $shell,
managehome => true,
allowdupe => false,
}
ssh_authorized_key { "${username}_authkey":
user => $username,
ensure => present,
key => $authkey,
type => $authkey_type,
}
}
In the user resource, I am requiring the user's default group. I also
want to require supplemental groups if provided by the parameter
$groups.
Also, is the way I do groups => $groups going to fail if it's empty or
if it's just a string (i.e., defines just one group instead of an
array)?
Links to the appropriate documentation would be greatly appreciated of
course!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.