On Sep 15, 2009, at 12:51 AM, R.I.Pienaar wrote:

>
> hello,
>
>
>> The problem with this structure is the possible (silent!) parse-order
>>
>> dependence of this node:
>>
>> node broken {
>>      include roles::web_node
>>      include roles::another_node_type
>> }
>>
>> The "lexical" model would either resort to extlookup:
>>
>> node web1, web2 {
>>      $apache::procs = extlookup("apache::procs", 10, "web_nodes")
>>      include web_node
>> }
>>
>> or node-inheritance:
>>
>> node web {
>>      $apache::start_procs = 10
>>      include apache
>> }
>>
>> node web1, web2 inherits web {
>> }
>>
>>
>> Especially the latter is only a minor change and (by using single
>> inheritance) correctly asserts that a node can only have "one"
>> identity
>> (source of configuration variables).
>
>
> I am not totally convinced about something that forces the use of  
> inheritance to get things sane, sure this change will at least "fix"  
> node inheritance and I agree I'd rather use extlookup there but not  
> everyones seen the light on this kind of thing yet :)
>
> Really if you use role classes you most certainly will not be  
> including both so the silent failure you suggest just wont happen in  
> this specific case.

The problem is that Puppet itself doesn't have any concept of 'role  
classes', and people often encounter the problem that David described.

It might make sense to have a role class -- almost something like an  
abstract base class or something, where a given host could only have  
one of the subclasses -- but we don't have it right now.

And even if we did, you still have a similar problem - there's a  
potential for a significant separation of the setting from the usage  
of that setting, and it's all pretty confusing.

-- 
The conception of two people living together for twenty-five years
without having a cross word suggests a lack of spirit only to be
admired in sheep. --Alan Patrick Herbert
---------------------------------------------------------------------
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 [email protected]
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