On Jul 12, 2012, at 4:30 AM, Felix Frank wrote:
> 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.

Hm. That might work, but seems even uglier :(

> Perhaps hiera can be used to do something clever here?


This is actually something that hiera seems perfect for, but we simply don't 
have any backend dataset from which to derive hiera data at this time. That is 
going to change, and I'm looking forward to having hiera access at that point.

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.



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