Well,

As you said earlier I will need to customize external node script.

I need to classify my nodes and I don't like the idea of using customized
external node script to
read extra database such as csv file for example.

I thought of an idea to parse yaml output of external node script, look for
some parameter such as "group=base".
Then look in some other source file/db to see which variable belong to group
"base" and concatenate these variables to external
node yaml out put.

Does node classification planned for gni ? I mean the ability to define a
group of nodes with some variables that all nodes
in the group will inherits.

Moty



On Wed, Sep 2, 2009 at 9:59 AM, Ohad Levy <ohadl...@gmail.com> wrote:

> Hi Moty,
>
> Note that variables in node scopes (and also true for classes) could be
> very confusing and are usually the main reason to move to external nodes..
>
> Ohad
>
> On Wed, Sep 2, 2009 at 2:32 PM, Moty <mot...@gmail.com> wrote:
>
>> Hi,
>>
>> I like Lab42 example. I understand what you saying about sticking to
>> something instead of adapting it to your needs but In terms
>> of structural idea I liked Lab42 example it gives you a nice abstraction
>> level of nodes and classes.
>> It's flexible and makes you "write once, use many".
>>
>> I'm not using inherits to pass classes, I use it for variables only so
>> wiki article is not relevant for me.
>>
>> Moty
>>
>>
>>
>> On Wed, Sep 2, 2009 at 1:41 AM, Joe McDonagh <joseph.e.mcdon...@gmail.com
>> > wrote:
>>
>>>
>>> Moty wrote:
>>> > So , If i'm currently working with the model of:
>>> >
>>> > infrastructure.pp
>>> > roles.pp
>>> > nodes.pp
>>> >
>>> > (model taken from Lab42 example)
>>> >
>>> > I need to break the infrastructure.pp and find some place to put all
>>> > of my node parameters ( in the classes probably)
>>> >
>>> > hmmm....I liked Lab42 model....
>>> >
>>> >
>>> > Moty
>>> >
>>> > On Tue, Sep 1, 2009 at 1:08 PM, Ohad Levy <ohadl...@gmail.com
>>> > <mailto:ohadl...@gmail.com>> wrote:
>>> >
>>> >     Hi,
>>> >
>>> >     You dont, you use the script to do the dirty job :)
>>> >
>>> >     Ohad
>>> >
>>> >     On Tue, Sep 1, 2009 at 5:53 PM, Moty <mot...@gmail.com
>>> >     <mailto:mot...@gmail.com>> wrote:
>>> >
>>> >
>>> >
>>> >         Hi,
>>> >
>>> >         I'm somewhat confuse about the way to set node inheritance
>>> >         with external node script.
>>> >
>>> >         Where do I actually define it ?
>>> >
>>> >
>>> >         10x in advance
>>> >
>>> >         Moty
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Moty
>>> >
>>> > >
>>> Sort of OT, and might not help you much, but I learned from a wise man
>>> in this community to avoid node inheritance. Especially if you expect it
>>> to work in the way that most people do, as outlined in
>>> wiki:CommonMisconceptions. That alone caused me to switch from node
>>> inheritance via node templates to using classes as the templates.
>>>
>>> Another comment I have is to take the canned recipes like from Lab42,
>>> and make them your own. Don't feel like you have to stick to their
>>> paradigm for everything, because it's just not always going to work for
>>> you.
>>>
>>> --
>>> Joe McDonagh
>>> Operations Engineer
>>> www.colonfail.com
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Moty
>>
>>
>>
>
> >
>


-- 

Moty

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