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 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, You dont, you use the script to do the dirty job :) Ohad On Tue, Sep 1, 2009 at 5:53 PM, Moty <motyla@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 > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <ohadlevy@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 <motyla@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 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <ohadlevy@gmail.com > <mailto:ohadlevy@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 <motyla@gmail.com > <mailto:motyla@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 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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.mcdonagh@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 <ohadlevy@gmail.com > > <mailto:ohadlevy@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 <motyla@gmail.com > > <mailto:motyla@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 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <motyla@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.mcdonagh@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 <ohadlevy@gmail.com >> > <mailto:ohadlevy@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 <motyla@gmail.com >> > <mailto:motyla@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 > > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <ohadlevy@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 <motyla@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.mcdonagh@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 <ohadlevy@gmail.com >>> > <mailto:ohadlevy@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 <motyla@gmail.com >>> > <mailto:motyla@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Wed, Sep 2, 2009 at 3:28 PM, Moty <motyla@gmail.com> 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 based (e.g. all hosts that are called xyz will be associated with certain groups) 2. selectable groups (e.g. what you call node inheritance). cheers, Ohad --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
gr8 news :-) On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadlevy@gmail.com> wrote:> On Wed, Sep 2, 2009 at 3:28 PM, Moty <motyla@gmail.com> 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 based (e.g. all hosts that are called xyz will be associated > with certain groups) > 2. selectable groups (e.g. what you call node inheritance). > > cheers, > Ohad > > > > >-- 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 requirements. in general it means moving you nodes into classes and including the relevant class in GNI. Ohad On Wed, Sep 2, 2009 at 4:34 PM, Moty <motyla@gmail.com> wrote:> > gr8 news :-) > > > > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadlevy@gmail.com> wrote: > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <motyla@gmail.com> 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 based (e.g. all hosts that are called xyz will be associated >> with certain groups) >> 2. selectable groups (e.g. what you call node inheritance). >> >> cheers, >> Ohad >> >> >> >> > > > -- > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 node which is in the group (just create another param with the same name). Cheers, Ohad On Wed, Sep 2, 2009 at 4:34 PM, Moty <motyla@gmail.com> wrote:> > gr8 news :-) > > > > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadlevy@gmail.com> wrote: > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <motyla@gmail.com> 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 based (e.g. all hosts that are called xyz will be associated >> with certain groups) >> 2. selectable groups (e.g. what you call node inheritance). >> >> cheers, >> Ohad >> >> >> >> > > > -- > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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. On Sep 5, 7:50 pm, Ohad Levy <ohadl...@gmail.com> wrote:> Hi Moty, > > I''ve implemented option number 2, see:http://github.com/ohadlevy/gni/commit/086ec942631cd083d2ba2cde3fe9262... > > 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 node which is in the group (just create another param > with the same name). > > Cheers, > Ohad > > On Wed, Sep 2, 2009 at 4:34 PM, Moty <mot...@gmail.com> wrote: > > > gr8 news :-) > > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <mot...@gmail.com> 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 based (e.g. all hosts that are called xyz will be associated > >> with certain groups) > >> 2. selectable groups (e.g. what you call node inheritance). > > >> cheers, > >> Ohad > > > -- > > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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,","): ensure => present } anyone knows if you can define a array in parameters? Cheers, Ohad On Sun, Sep 6, 2009 at 4:39 PM, Moty <motyla@gmail.com> wrote:> > > 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. > > > > On Sep 5, 7:50 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > Hi Moty, > > > > I''ve implemented option number 2, see: > http://github.com/ohadlevy/gni/commit/086ec942631cd083d2ba2cde3fe9262... > > > > 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 node which is in the group (just create another > param > > with the same name). > > > > Cheers, > > Ohad > > > > On Wed, Sep 2, 2009 at 4:34 PM, Moty <mot...@gmail.com> wrote: > > > > > gr8 news :-) > > > > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > > > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <mot...@gmail.com> 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 based (e.g. all hosts that are called xyz will be > associated > > >> with certain groups) > > >> 2. selectable groups (e.g. what you call node inheritance). > > > > >> cheers, > > >> Ohad > > > > > -- > > > > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <ohadlevy@gmail.com> wrote:> 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,","): ensure => present } > > anyone knows if you can define a array in parameters? > > Cheers, > Ohad > > > On Sun, Sep 6, 2009 at 4:39 PM, Moty <motyla@gmail.com> wrote: > >> >> >> 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. >> >> >> >> On Sep 5, 7:50 pm, Ohad Levy <ohadl...@gmail.com> wrote: >> > Hi Moty, >> > >> > I''ve implemented option number 2, see: >> http://github.com/ohadlevy/gni/commit/086ec942631cd083d2ba2cde3fe9262... >> > >> > 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 node which is in the group (just create another >> param >> > with the same name). >> > >> > Cheers, >> > Ohad >> > >> > On Wed, Sep 2, 2009 at 4:34 PM, Moty <mot...@gmail.com> wrote: >> > >> > > gr8 news :-) >> > >> > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadl...@gmail.com> >> wrote: >> > >> > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <mot...@gmail.com> 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 based (e.g. all hosts that are called xyz will be >> associated >> > >> with certain groups) >> > >> 2. selectable groups (e.g. what you call node inheritance). >> > >> > >> cheers, >> > >> Ohad >> > >> > > -- >> > >> > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <motyla@gmail.com> wrote:> 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 <ohadlevy@gmail.com> wrote: > >> 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,","): ensure => present } >> >> anyone knows if you can define a array in parameters? >> >> Cheers, >> Ohad >> >> >> On Sun, Sep 6, 2009 at 4:39 PM, Moty <motyla@gmail.com> wrote: >> >>> >>> >>> 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. >>> >>> >>> >>> On Sep 5, 7:50 pm, Ohad Levy <ohadl...@gmail.com> wrote: >>> > Hi Moty, >>> > >>> > I''ve implemented option number 2, see: >>> http://github.com/ohadlevy/gni/commit/086ec942631cd083d2ba2cde3fe9262... >>> > >>> > 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 node which is in the group (just create another >>> param >>> > with the same name). >>> > >>> > Cheers, >>> > Ohad >>> > >>> > On Wed, Sep 2, 2009 at 4:34 PM, Moty <mot...@gmail.com> wrote: >>> > >>> > > gr8 news :-) >>> > >>> > > On Wed, Sep 2, 2009 at 10:51 AM, Ohad Levy <ohadl...@gmail.com> >>> wrote: >>> > >>> > >> On Wed, Sep 2, 2009 at 3:28 PM, Moty <mot...@gmail.com> 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 based (e.g. all hosts that are called xyz will be >>> associated >>> > >> with certain groups) >>> > >> 2. selectable groups (e.g. what you call node inheritance). >>> > >>> > >> cheers, >>> > >> Ohad >>> > >>> > > -- >>> > >>> > > Moty >>> > >>> > >>> >>> >> >> >> >> > > > -- > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---