On Nov 18, 2008, at 1:03 PM, Deepak Giridharagopal wrote:

>
> For the record, I run into this problem all the time. I ended up  
> effectively
> "inverting" the inheritance hierarchy of my nodes so that instead of
> inheriting, they just duplicate the same includes with a different  
> set of
> "global" variables preceding them. It works, but it's clearly  
> suboptimal.
>
> On Mon, Nov 17, 2008 at 12:48 PM, Luke Kanies <[EMAIL PROTECTED]>  
> wrote:
>>> Any suggestion for a more elegant solution would be appreciated.
>>
>> An external node solution would work much better.
>
> IIRC, the external nodes feature doesn't support the same  
> capabilities. For
> example, I don't believe an external nodes script can use "define".  
> So if you
> have defines with attributes that vary from node to node, I don't  
> know how
> you'd do it with external nodes in a way that wasn't more trouble  
> than it's
> worth.

But don't these attributes derive somehow from the attributes in the  
external nodes?  That is, wouldn't you generally consider these to be  
node attributes, rather than than attributes of the resources being  
configured, if they differ per node?

>
> An external node system that supported all the constructs the puppet  
> language
> supports would be great. I'd also like a pony. :) But in the  
> meantime, even
> something as basic as allowing external scripts to return puppet  
> code that just
> gets parsed and 'eval'-ed, though admittedly ghetto, would make my  
> life a lot
> easier.

What are you hoping to do with this?  I'm not entirely opposed, but  
I'd prefer not to, if possible.  If I could understand the need, maybe  
I could solve it without going all the way there.

-- 
Sabbagh's Second Law:
     The biggest problem with communication is the illusion that it
     has occurred.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to