Sebastian Krueger
2009-Mar-02 03:46 UTC
[Puppet Users] problem changing group membership for linux users
Hi list, I want the ensure that the eaiadmin user is always a member of the users group. I use the following configuration: class baseusers { include virt_groups, virt_users realize( Group["eaiadmin"], Group["users"] ) realize( User["eaiadmin"] ) } class virt_users { @user { "eaiadmin": gid => "30", ensure => present, groups => [ "users" ] } } class virt_groups { @group { "eaiadmin": gid => "30", ensure => present } @group { "users": gid => "100", ensure => present } } This works well, however it looks like the setting is applied everytime, regardless if the eaiadmin user is already in the users group. Here a snippet from the log: Mar 2 16:36:42 eaisoa-kbp-a4dk puppetd[3327]: (//Node[basenode]/baseusers/virt_users/User[eaiadmin]) Changing groups Mar 2 16:36:42 eaisoa-kbp-a4dk puppetd[3327]: (//Node[basenode]/baseusers/virt_users/User[eaiadmin]) 1 change(s) Mar 2 16:36:43 eaisoa-kbp-a4dk puppetd[3327]: (User[eaiadmin](provider=useradd)) Executing ''/usr/sbin/usermod -G users eaiadmin'' Mar 2 16:36:44 eaisoa-kbp-a4dk shadow[28443]: account removed from group - account=eaiadmin, group=users, gid=100, by=0 Mar 2 16:36:44 eaisoa-kbp-a4dk shadow[28443]: account removed from group - account=eaiadmin, group=users, gid=100, by=0 Mar 2 16:36:44 eaisoa-kbp-a4dk shadow[28443]: account added to group - account=eaiadmin, group=users, gid=100, by=0 Mar 2 16:36:44 eaisoa-kbp-a4dk puppetd[3327]: (//Node[basenode]/baseusers/virt_users/User[eaiadmin]/groups) groups changed ''users,users'' to ''users'' Why does it show ''users,users'' to ''users''? Is this a bug with the groupadd provider? For some reason puppet thinks that eaiadmin is not a member of the users group, even though it is. Regards, Sebastian. --~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Mar-02 04:34 UTC
[Puppet Users] Re: problem changing group membership for linux users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sebastian Krueger wrote:> > Why does it show ''users,users'' to ''users''? Is this a bug with the groupadd > provider? For some reason puppet thinks that eaiadmin is not a member of the > users group, even though it is.Sebastian - what Puppet version and platform? I am pretty sure that''s a bug now fixed. Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmrYd8ACgkQ9hTGvAxC30CutACgrZhgGLri4LtQpA5scHTPn9F2 o3sAoL0L5+IL6G7DHDM0xgVTSkVljsyt =sRom -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-02 04:37 UTC
[Puppet Users] Re: problem changing group membership for linux users
H James, I''m using eaisoa-puppet:/export/puppet/manifests/definitions # rpm -qa|grep puppet puppet-0.24.7-5 puppet-server-0.24.7-5 eaisoa-puppet:/export/puppet/manifests/definitions # If you that is a bug that is already fixed, then do you think I should grab the latest version from code repository? Thanks, Sebastian. On Mon, Mar 2, 2009 at 5:34 PM, James Turnbull <james@lovedthanlost.net>wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sebastian Krueger wrote: > > > > Why does it show ''users,users'' to ''users''? Is this a bug with the > groupadd > > provider? For some reason puppet thinks that eaiadmin is not a member of > the > > users group, even though it is. > > Sebastian - what Puppet version and platform? I am pretty sure that''s a > bug now fixed. > > Regards > > James Turnbull > > - -- > Author of: > * Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > * Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > * Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkmrYd8ACgkQ9hTGvAxC30CutACgrZhgGLri4LtQpA5scHTPn9F2 > o3sAoL0L5+IL6G7DHDM0xgVTSkVljsyt > =sRom > -----END PGP SIGNATURE----- > > > >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-02 05:50 UTC
[Puppet Users] Re: problem changing group membership for linux users
Hi Nick, I''ve added in the membership => inclusive part but it''s still trying to reassign the groupmembership all the time. Regards, Sebastian. On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote:> > On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger > <sebykrueger@gmail.com> wrote: > > > Hi list, > > > > I want the ensure that the eaiadmin user is always a member of the users > > group. I use the following configuration: > > > > class baseusers { > > include virt_groups, virt_users > > > > realize( > > Group["eaiadmin"], > > Group["users"] > > ) > > > > realize( > > User["eaiadmin"] > > ) > > > > } > > > > class virt_users { > > @user { "eaiadmin": > > gid => "30", > > ensure => present, > > groups => [ "users" ] > > } > > } > > > > class virt_groups { > > @group { "eaiadmin": > > gid => "30", > > ensure => present > > } > > @group { "users": > > gid => "100", > > ensure => present > > } > > } > > Hi Sebastian, > I think u must try to add "membership => inclusive" in @user for more > "stability". Btw what is u puppet version, cuz as i see "groups" are > version sensitive. > And look here > http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 > > > >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-02 06:10 UTC
[Puppet Users] Re: problem changing group membership for linux users
Hi everyone, so I''m trying to do a checkout from the git repository as James said that the problem may already be resolved in a later version. However, I can''t seem to get git to go through the corporate http proxy server. I do the following: http_proxy=http://foo:1234 git clone git://reductivelabs.com/puppet And then it just sits there and times out eventually. Do any of you guys use git through a proxy and could share their configuration? Regards, Sebastian. On Mon, Mar 2, 2009 at 6:50 PM, Sebastian Krueger <sebykrueger@gmail.com> wrote:> > Hi Nick, > > I''ve added in the membership => inclusive part but it''s still trying to reassign the groupmembership all the time. > > Regards, Sebastian. > > On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: >> >> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger >> <sebykrueger@gmail.com> wrote: >> >> > Hi list, >> > >> > I want the ensure that the eaiadmin user is always a member of the users >> > group. I use the following configuration: >> > >> > class baseusers { >> > include virt_groups, virt_users >> > >> > realize( >> > Group["eaiadmin"], >> > Group["users"] >> > ) >> > >> > realize( >> > User["eaiadmin"] >> > ) >> > >> > } >> > >> > class virt_users { >> > @user { "eaiadmin": >> > gid => "30", >> > ensure => present, >> > groups => [ "users" ] >> > } >> > } >> > >> > class virt_groups { >> > @group { "eaiadmin": >> > gid => "30", >> > ensure => present >> > } >> > @group { "users": >> > gid => "100", >> > ensure => present >> > } >> > } >> >> Hi Sebastian, >> I think u must try to add "membership => inclusive" in @user for more >> "stability". Btw what is u puppet version, cuz as i see "groups" are >> version sensitive. >> And look here http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 >> >> >> >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
AJ Christensen
2009-Mar-02 06:17 UTC
[Puppet Users] Re: problem changing group membership for linux users
I believe you can only use git:// through an HTTP proxy when it supports the CONNECT method. It may be possible to clone via HTTP, but push operations are only possible over HTTP to DAV. Regards, AJ On 2/03/2009, at 7:10 PM, Sebastian Krueger wrote:> > Hi everyone, > > so I''m trying to do a checkout from the git repository as James said > that the problem may already be resolved in a later version. > > However, I can''t seem to get git to go through the corporate http > proxy server. > > I do the following: > > http_proxy=http://foo:1234 git clone git://reductivelabs.com/puppet > > And then it just sits there and times out eventually. > > Do any of you guys use git through a proxy and could share their > configuration? > > Regards, Sebastian. > > > On Mon, Mar 2, 2009 at 6:50 PM, Sebastian Krueger <sebykrueger@gmail.com > > wrote: >> >> Hi Nick, >> >> I''ve added in the membership => inclusive part but it''s still >> trying to reassign the groupmembership all the time. >> >> Regards, Sebastian. >> >> On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: >>> >>> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger >>> <sebykrueger@gmail.com> wrote: >>> >>>> Hi list, >>>> >>>> I want the ensure that the eaiadmin user is always a member of >>>> the users >>>> group. I use the following configuration: >>>> >>>> class baseusers { >>>> include virt_groups, virt_users >>>> >>>> realize( >>>> Group["eaiadmin"], >>>> Group["users"] >>>> ) >>>> >>>> realize( >>>> User["eaiadmin"] >>>> ) >>>> >>>> } >>>> >>>> class virt_users { >>>> @user { "eaiadmin": >>>> gid => "30", >>>> ensure => present, >>>> groups => [ "users" ] >>>> } >>>> } >>>> >>>> class virt_groups { >>>> @group { "eaiadmin": >>>> gid => "30", >>>> ensure => present >>>> } >>>> @group { "users": >>>> gid => "100", >>>> ensure => present >>>> } >>>> } >>> >>> Hi Sebastian, >>> I think u must try to add "membership => inclusive" in @user for >>> more >>> "stability". Btw what is u puppet version, cuz as i see "groups" are >>> version sensitive. >>> And look here http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 >>> >>>>> >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-02 07:37 UTC
[Puppet Users] Re: problem changing group membership for linux users
it''s definitely version 0.24.7. At least that''s the only version I''ve ever downloaded. I''m running SLES 10.2. Not sure if that makes any difference compared to Gentoo? I can''t seem to work out how to download the source from git through our proxy. Looks like our proxy doesn''t support "CONNECT" requests. As I''m still relatively new to Ruby, can someone point me to the source file and I''ll compare the code manually? Cheers, Sebastian. On Tue, Mar 3, 2009 at 12:30 AM, <nick.maystrenko@gmail.com> wrote:> > On Mon, 02 Mar 2009 05:50:42 -0000, Sebastian Krueger > <sebykrueger@gmail.com> wrote: > >> Hi Nick, >> >> I''ve added in the membership => inclusive part but it''s still trying to >> reassign the groupmembership all the time. >> >> Regards, Sebastian. >> >> On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: >> >>> >>> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger >>> <sebykrueger@gmail.com> wrote: >>> >>> > Hi list, >>> > >>> > I want the ensure that the eaiadmin user is always a member of the >>> users >>> > group. I use the following configuration: >>> > >>> > class baseusers { >>> > include virt_groups, virt_users >>> > >>> > realize( >>> > Group["eaiadmin"], >>> > Group["users"] >>> > ) >>> > >>> > realize( >>> > User["eaiadmin"] >>> > ) >>> > >>> > } >>> > >>> > class virt_users { >>> > @user { "eaiadmin": >>> > gid => "30", >>> > ensure => present, >>> > groups => [ "users" ] >>> > } >>> > } >>> > >>> > class virt_groups { >>> > @group { "eaiadmin": >>> > gid => "30", >>> > ensure => present >>> > } >>> > @group { "users": >>> > gid => "100", >>> > ensure => present >>> > } >>> > } >>> >>> Hi Sebastian, >>> I think u must try to add "membership => inclusive" in @user for more >>> "stability". Btw what is u puppet version, cuz as i see "groups" are >>> version sensitive. >>> And look here >>> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 >>> >>> > >>> >> >> > > > > If puppetd doin groups reassign all time, so it is not 0.24.7 version. I > have same issue in 0.24.4 on gentoo. In 0.24.7 with membership I don have > any problems with "groups". > > > >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-02 07:41 UTC
[Puppet Users] Re: problem changing group membership for linux users
How hard would it be to add a flag / option to reductivelabs projects that use git, to tell git to use the http method? So it would tell git to use http:// instead of git:// example: git clone http://reductivelabs.com/puppet maybe something like this http://reductivelabs.com/repos/git/puppet Would that be possible? Regards, Sebastian. On Mon, Mar 2, 2009 at 8:37 PM, Sebastian Krueger <sebykrueger@gmail.com> wrote:> it''s definitely version 0.24.7. > > At least that''s the only version I''ve ever downloaded. I''m running > SLES 10.2. Not sure if that makes any difference compared to Gentoo? > > I can''t seem to work out how to download the source from git through > our proxy. Looks like our proxy doesn''t support "CONNECT" requests. As > I''m still relatively new to Ruby, can someone point me to the source > file and I''ll compare the code manually? > > Cheers, Sebastian. > > On Tue, Mar 3, 2009 at 12:30 AM, <nick.maystrenko@gmail.com> wrote: >> >> On Mon, 02 Mar 2009 05:50:42 -0000, Sebastian Krueger >> <sebykrueger@gmail.com> wrote: >> >>> Hi Nick, >>> >>> I''ve added in the membership => inclusive part but it''s still trying to >>> reassign the groupmembership all the time. >>> >>> Regards, Sebastian. >>> >>> On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: >>> >>>> >>>> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger >>>> <sebykrueger@gmail.com> wrote: >>>> >>>> > Hi list, >>>> > >>>> > I want the ensure that the eaiadmin user is always a member of the >>>> users >>>> > group. I use the following configuration: >>>> > >>>> > class baseusers { >>>> > include virt_groups, virt_users >>>> > >>>> > realize( >>>> > Group["eaiadmin"], >>>> > Group["users"] >>>> > ) >>>> > >>>> > realize( >>>> > User["eaiadmin"] >>>> > ) >>>> > >>>> > } >>>> > >>>> > class virt_users { >>>> > @user { "eaiadmin": >>>> > gid => "30", >>>> > ensure => present, >>>> > groups => [ "users" ] >>>> > } >>>> > } >>>> > >>>> > class virt_groups { >>>> > @group { "eaiadmin": >>>> > gid => "30", >>>> > ensure => present >>>> > } >>>> > @group { "users": >>>> > gid => "100", >>>> > ensure => present >>>> > } >>>> > } >>>> >>>> Hi Sebastian, >>>> I think u must try to add "membership => inclusive" in @user for more >>>> "stability". Btw what is u puppet version, cuz as i see "groups" are >>>> version sensitive. >>>> And look here >>>> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 >>>> >>>> > >>>> >>> >>> > >> >> >> If puppetd doin groups reassign all time, so it is not 0.24.7 version. I >> have same issue in 0.24.4 on gentoo. In 0.24.7 with membership I don have >> any problems with "groups". >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
nick.maystrenko@gmail.com
2009-Mar-02 09:39 UTC
[Puppet Users] Re: problem changing group membership for linux users
On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger <sebykrueger@gmail.com> wrote:> Hi list, > > I want the ensure that the eaiadmin user is always a member of the users > group. I use the following configuration: > > class baseusers { > include virt_groups, virt_users > > realize( > Group["eaiadmin"], > Group["users"] > ) > > realize( > User["eaiadmin"] > ) > > } > > class virt_users { > @user { "eaiadmin": > gid => "30", > ensure => present, > groups => [ "users" ] > } > } > > class virt_groups { > @group { "eaiadmin": > gid => "30", > ensure => present > } > @group { "users": > gid => "100", > ensure => present > } > }Hi Sebastian, I think u must try to add "membership => inclusive" in @user for more "stability". Btw what is u puppet version, cuz as i see "groups" are version sensitive. And look here http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 --~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
nick.maystrenko@gmail.com
2009-Mar-02 11:30 UTC
[Puppet Users] Re: problem changing group membership for linux users
On Mon, 02 Mar 2009 05:50:42 -0000, Sebastian Krueger <sebykrueger@gmail.com> wrote:> Hi Nick, > > I''ve added in the membership => inclusive part but it''s still trying to > reassign the groupmembership all the time. > > Regards, Sebastian. > > On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: > >> >> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger >> <sebykrueger@gmail.com> wrote: >> >> > Hi list, >> > >> > I want the ensure that the eaiadmin user is always a member of the >> users >> > group. I use the following configuration: >> > >> > class baseusers { >> > include virt_groups, virt_users >> > >> > realize( >> > Group["eaiadmin"], >> > Group["users"] >> > ) >> > >> > realize( >> > User["eaiadmin"] >> > ) >> > >> > } >> > >> > class virt_users { >> > @user { "eaiadmin": >> > gid => "30", >> > ensure => present, >> > groups => [ "users" ] >> > } >> > } >> > >> > class virt_groups { >> > @group { "eaiadmin": >> > gid => "30", >> > ensure => present >> > } >> > @group { "users": >> > gid => "100", >> > ensure => present >> > } >> > } >> >> Hi Sebastian, >> I think u must try to add "membership => inclusive" in @user for more >> "stability". Btw what is u puppet version, cuz as i see "groups" are >> version sensitive. >> And look here >> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 >> >> > >> > > >If puppetd doin groups reassign all time, so it is not 0.24.7 version. I have same issue in 0.24.4 on gentoo. In 0.24.7 with membership I don have any problems with "groups". --~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Sebastian Krueger
2009-Mar-03 22:41 UTC
[Puppet Users] Re: problem changing group membership for linux users
bump On Mon, Mar 2, 2009 at 8:41 PM, Sebastian Krueger <sebykrueger@gmail.com>wrote:> How hard would it be to add a flag / option to reductivelabs projects > that use git, to tell git to use the http > method? > > So it would tell git to use http:// instead of git:// > > example: > git clone http://reductivelabs.com/puppet > > maybe something like this http://reductivelabs.com/repos/git/puppet > > Would that be possible? > > Regards, Sebastian. > > On Mon, Mar 2, 2009 at 8:37 PM, Sebastian Krueger <sebykrueger@gmail.com> > wrote: > > it''s definitely version 0.24.7. > > > > At least that''s the only version I''ve ever downloaded. I''m running > > SLES 10.2. Not sure if that makes any difference compared to Gentoo? > > > > I can''t seem to work out how to download the source from git through > > our proxy. Looks like our proxy doesn''t support "CONNECT" requests. As > > I''m still relatively new to Ruby, can someone point me to the source > > file and I''ll compare the code manually? > > > > Cheers, Sebastian. > > > > On Tue, Mar 3, 2009 at 12:30 AM, <nick.maystrenko@gmail.com> wrote: > >> > >> On Mon, 02 Mar 2009 05:50:42 -0000, Sebastian Krueger > >> <sebykrueger@gmail.com> wrote: > >> > >>> Hi Nick, > >>> > >>> I''ve added in the membership => inclusive part but it''s still trying to > >>> reassign the groupmembership all the time. > >>> > >>> Regards, Sebastian. > >>> > >>> On Mon, Mar 2, 2009 at 10:39 PM, <nick.maystrenko@gmail.com> wrote: > >>> > >>>> > >>>> On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger > >>>> <sebykrueger@gmail.com> wrote: > >>>> > >>>> > Hi list, > >>>> > > >>>> > I want the ensure that the eaiadmin user is always a member of the > >>>> users > >>>> > group. I use the following configuration: > >>>> > > >>>> > class baseusers { > >>>> > include virt_groups, virt_users > >>>> > > >>>> > realize( > >>>> > Group["eaiadmin"], > >>>> > Group["users"] > >>>> > ) > >>>> > > >>>> > realize( > >>>> > User["eaiadmin"] > >>>> > ) > >>>> > > >>>> > } > >>>> > > >>>> > class virt_users { > >>>> > @user { "eaiadmin": > >>>> > gid => "30", > >>>> > ensure => present, > >>>> > groups => [ "users" ] > >>>> > } > >>>> > } > >>>> > > >>>> > class virt_groups { > >>>> > @group { "eaiadmin": > >>>> > gid => "30", > >>>> > ensure => present > >>>> > } > >>>> > @group { "users": > >>>> > gid => "100", > >>>> > ensure => present > >>>> > } > >>>> > } > >>>> > >>>> Hi Sebastian, > >>>> I think u must try to add "membership => inclusive" in @user for more > >>>> "stability". Btw what is u puppet version, cuz as i see "groups" are > >>>> version sensitive. > >>>> And look here > >>>> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id312 > >>>> > >>>> > > >>>> > >>> > >>> > > >> > >> > >> If puppetd doin groups reassign all time, so it is not 0.24.7 version. I > >> have same issue in 0.24.4 on gentoo. In 0.24.7 with membership I don > have > >> any problems with "groups". > >> > >> > >> > >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---