I still can't find if external node support array parameters and if so how
to put it into yaml output
to be read as array.
anyone knows if it is supported by ExternalNode ?
Moty
On Sun, Sep 6, 2009 at 1:11 PM, Moty wrote:
> In puppet you can (I use 0.24,8).
>
> I do it now in my infrastructure
In puppet you can (I use 0.24,8).
I do it now in my infrastructure.pp file and then depend on the role of the
node I add values
to it with the += sign.
Moty
On Sun, Sep 6, 2009 at 12:46 PM, Ohad Levy wrote:
> just to be sure, are you asking if you can define a external node
> parameter which
just to be sure, are you asking if you can define a external node parameter
which is an array?
hmm.. never tried that, you can always use the split function (now native
within 0.25)
for example, if you have a parameter letters and its value is a,b,d,e
you could do:
file{split(letters,","): ensur
gr8 . Just installed it and I can see new fields.
Going to move some nodes into external nodes
I wonder...
Is it be possible to concatenate arrays ? I mean that there will be
ability to change the "=" into "+="
so at the host level I can add values to arrays defined in the group
level.
Hi Moty,
I've implemented option number 2, see:
http://github.com/ohadlevy/gni/commit/086ec942631cd083d2ba2cde3fe92621ec2a1164
I've also added parameters inheritance, that means that you can define a
parameter which is valid though the group, e.g. max = 50 for the group, but
max=20 to a specific
btw: I myself don't use it, I use normal puppet classes instead, e.g.:
- have a default/common class which includes all the classes that I want to
be there by default.
- have a class for each host type - e.g. ,my host function is a X server, so
I have a class X which bundles all of the requirement
gr8 news :-)
On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy wrote:
> On Wed, Sep 2, 2009 at 3:28 PM, Moty wrote:
>
>> ...
>> 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.
>>
>
> Sure, G
On Wed, Sep 2, 2009 at 3:28 PM, Moty wrote:
> ...
> 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.
>
Sure, GNI is a node classifier solution.
I will implement two options:
1.host name bas
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
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 wrote:
> Hi,
>
> I like Lab42 example. I understand what you saying about sticking to
> somethin
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 usi
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)
>
> hmmmI liked Lab42 mod
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)
hmmmI liked Lab42 model
Moty
On Tue, Sep 1, 2009
Hi,
You dont, you use the script to do the dirty job :)
Ohad
On Tue, Sep 1, 2009 at 5:53 PM, Moty 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
> >
>
--~--~
14 matches
Mail list logo