>
> define adduser ($shell, $group, $fullname, $ingroups="", $uid="", $home="")
> {
> group { $group :
> ensure => present
> }
>
> user { $name :
> ensure => present,
> comment => "$fullname",
> gid => "$group",
> groups => $ingroups,
> membership => minimum,
> shell => $shell,
> home => $home,
> uid => $uid,
> }
> }
>
It perhaps runs the risk of referencing the group twice if you add a
user with the same main group more than once.
Take a look at http://docs.puppetlabs.com/guides/virtual_resources.html
for how to handle that.
--Michael
--
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.