On Mon, 02 Mar 2009 03:46:55 -0000, Sebastian Krueger  
<sebykrue...@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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to