[Puppet Users] Re: deleting users secondary groups

2008-11-18 Thread Dave Nash
I tried it on a whim and I had to have the groups option set for the user even if I didn't want him to belong to groups beyond his primary group. So I did something like this. user { "arnaubria": ensure => present, gid=> "31401", home => "/nfs/pic.es/user/a/a

[Puppet Users] Re: deleting users secondary groups

2008-11-18 Thread Arnau Bria
On Wed, 19 Nov 2008 00:27:24 +1300 Aj Aj wrote: > > You'll want to use the membership parameter to achieve this, check > the type ref. I've done. But I don't know how membership could help me I've tried with both values: inclusive, minimum. user { "arnaubria": ensure => present,

[Puppet Users] Re: deleting users secondary groups

2008-11-18 Thread Aj
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

[Puppet Users] Re: deleting users secondary groups

2008-11-18 Thread Arnau Bria
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

[Puppet Users] Re: deleting users secondary groups

2008-11-17 Thread Luke Kanies
On Nov 17, 2008, at 6:12 AM, Arnau Bria wrote: > > Hi all, > > I'm using "users/group" type for user/group creation. > > But how to remove user secondary groups? > > Is delete / recreate the only solution? What do you mean? Just specify the list of groups you want the user to have, then set