Hi,

On 07/11/2012 10:03 PM, Jo Rhett wrote:
> So I tried to get smarter, and put logic to add the group to each member
> under the appropriate class
> Class users::dev inherits users { 
> User['jrhett'] { groups +> ['dev'] }
> }
> 
> This works… almost. It works for all instances where the user is only
> subclassed once. But if I do the same technique in multiple classes I get 

sound approach, but I've hit this wall a couple of times as well.

I've resorted to horrors that would add items to array variables that
are declared in a central, well-known class, and use the final value for
the resources in question. Depending on how much flexibility is
required, this may not be feasible at all.

Perhaps hiera can be used to do something clever here?

Cheers,
Felix

-- 
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