You'll want to use the membership parameter to achieve this, check the type ref.
Regards, Aj On 18/11/2008, at 9:57 PM, Arnau Bria <[EMAIL PROTECTED]> wrote: > > On Mon, 17 Nov 2008 17:24:27 -0600 > Luke Kanies wrote: > Hi Luke, > >>> Is delete / recreate the only solution? >> >> What do you mean? > > # id arnaubria > uid=63003(arnaubria) gid=31401(grid) groups=31401(grid) > user { "arnaubria": > ensure => present, > gid => "31401", > home => "/nfs/pic.es/user/a/arnaubria", > name => arnaubria, > provider => useradd, > uid => "63003", > } > > Now I add: > groups => [ "paco" ] > > # id arnaubria > uid=63003(arnaubria) gid=31401(grid) groups=31401(grid),502(paco) > > Which is correct. > > Now I remove groups "paco", so my user will belong to only grid group > again: > > # id arnaubria > uid=63003(arnaubria) gid=31401(grid) groups=31401(grid),502(paco) > > Wrong. > > So, do I have to delete my user and recreate again?? > > > TIA, > Arnau > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---