David Bell
2012-Aug-21 21:12 UTC
[Puppet Users] Puppet equivilent to "adduser [user] [group]"
Hi there. I am trying to add an existing user (set up by a package during installation) to a group set up by another package during its installation. So both the group and the user all ready exist. I want the group to be added as an ADDITIONAL group, not to replace the users originally assigned group. Is there a simple way of achieving this? Thanks David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/OPtGqvsZUEsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nick Fagerlund
2012-Aug-21 21:24 UTC
[Puppet Users] Re: Puppet equivilent to "adduser [user] [group]"
You need to use the "groups" (not to be confused with "group"!) attribute to set a list of supplementary groups, and set the "membership" attribute to "minimum". Docs here: http://docs.puppetlabs.com/references/latest/type.html#user On Tuesday, August 21, 2012 2:12:55 PM UTC-7, David Bell wrote:> > Hi there. > > I am trying to add an existing user (set up by a package during > installation) to a group set up by another package during its installation. > > So both the group and the user all ready exist. > > I want the group to be added as an ADDITIONAL group, not to replace the > users originally assigned group. > > Is there a simple way of achieving this? > > Thanks > > David >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/JXoUL6eRapsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.