Does switching to external nodes require a forklift approach? The other day, I specified an external node script in puppet.conf, and puppet complained about every single node that wasn''t handled by the external script. It would be nice (and more realistic) to be able to cut one node over at a time. Is this possible? Doug. -- 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 Thu, May 27, 2010 at 9:35 AM, Douglas Garstang <doug.garstang@gmail.com>wrote:> Does switching to external nodes require a forklift approach? > > The other day, I specified an external node script in puppet.conf, and > puppet complained about every single node that wasn''t handled by the > external script. It would be nice (and more realistic) to be able to > cut one node over at a time. Is this possible? >Absolutely. My external node script just returns the default config for any node it can''t find a specific config for.> > Doug. > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- nigel -- 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.
Douglas Garstang
2010-May-27 17:23 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> wrote:> > > On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang <doug.garstang@gmail.com> > wrote: >> >> Does switching to external nodes require a forklift approach? >> >> The other day, I specified an external node script in puppet.conf, and >> puppet complained about every single node that wasn''t handled by the >> external script. It would be nice (and more realistic) to be able to >> cut one node over at a time. Is this possible? > > Absolutely. > My external node script just returns the default config for any node it > can''t find a specific config for.That''s not going to work. When the node isn''t defined as an external node, I want it to use the node manifest file, not a default. If I was going to start using external nodes, some nodes would be external and some nodes would not be external, until they where all converted. It looks like while this was the case, nothing would work. Doug. -- 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.
Michael DeHaan
2010-May-27 17:34 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> wrote: >> >> >> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang <doug.garstang@gmail.com> >> wrote: >>> >>> Does switching to external nodes require a forklift approach? >>> >>> The other day, I specified an external node script in puppet.conf, and >>> puppet complained about every single node that wasn''t handled by the >>> external script. It would be nice (and more realistic) to be able to >>> cut one node over at a time. Is this possible? >> >> Absolutely. >> My external node script just returns the default config for any node it >> can''t find a specific config for. > > That''s not going to work. When the node isn''t defined as an external > node, I want it to use the node manifest file, not a default. If I was > going to start using external nodes, some nodes would be external and > some nodes would not be external, until they where all converted. It > looks like while this was the case, nothing would work.As I understood things, external nodes is supposed to work as an overlay on top of site.pp Is this not working if you just return an empty list of classes/variables for a node? IIRC this works this way today -- let us know if there''s a problem with it. --Michael -- 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.
Douglas Garstang
2010-May-27 21:42 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan <michael@puppetlabs.com> wrote:> On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> wrote: >>> >>> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang <doug.garstang@gmail.com> >>> wrote: >>>> >>>> Does switching to external nodes require a forklift approach? >>>> >>>> The other day, I specified an external node script in puppet.conf, and >>>> puppet complained about every single node that wasn''t handled by the >>>> external script. It would be nice (and more realistic) to be able to >>>> cut one node over at a time. Is this possible? >>> >>> Absolutely. >>> My external node script just returns the default config for any node it >>> can''t find a specific config for. >> >> That''s not going to work. When the node isn''t defined as an external >> node, I want it to use the node manifest file, not a default. If I was >> going to start using external nodes, some nodes would be external and >> some nodes would not be external, until they where all converted. It >> looks like while this was the case, nothing would work. > > As I understood things, external nodes is supposed to work as an > overlay on top of site.pp > > Is this not working if you just return an empty list of > classes/variables for a node? > > IIRC this works this way today -- let us know if there''s a problem with it.Sorry, I really don''t follow you. The external node is specified in the puppet.conf file. Doesn''t that mean ALL nodes are run through it??? Doug -- 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 Thu, May 27, 2010 at 2:42 PM, Douglas Garstang <doug.garstang@gmail.com>wrote:> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan <michael@puppetlabs.com> > wrote: > > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang > > <doug.garstang@gmail.com> wrote: > >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> > wrote: > >>> > >>> > >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang < > doug.garstang@gmail.com> > >>> wrote: > >>>> > >>>> Does switching to external nodes require a forklift approach? > >>>> > >>>> The other day, I specified an external node script in puppet.conf, and > >>>> puppet complained about every single node that wasn''t handled by the > >>>> external script. It would be nice (and more realistic) to be able to > >>>> cut one node over at a time. Is this possible? > >>> > >>> Absolutely. > >>> My external node script just returns the default config for any node it > >>> can''t find a specific config for. > >> > >> That''s not going to work. When the node isn''t defined as an external > >> node, I want it to use the node manifest file, not a default. If I was > >> going to start using external nodes, some nodes would be external and > >> some nodes would not be external, until they where all converted. It > >> looks like while this was the case, nothing would work. > > > > As I understood things, external nodes is supposed to work as an > > overlay on top of site.pp > > > > Is this not working if you just return an empty list of > > classes/variables for a node? > > > > IIRC this works this way today -- let us know if there''s a problem with > it. > > Sorry, I really don''t follow you. The external node is specified in > the puppet.conf file. Doesn''t that mean ALL nodes are run through > it??? >I believe what Michael is saying is rather than returning *nothing*, you should return an empty node definition with empty parameters/classes.> > Doug > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- nigel -- 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.
Douglas Garstang
2010-May-27 21:56 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten <nigelk@google.com> wrote:> > > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang <doug.garstang@gmail.com> > wrote: >> >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan <michael@puppetlabs.com> >> wrote: >> > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang >> > <doug.garstang@gmail.com> wrote: >> >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> >> >> wrote: >> >>> >> >>> >> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang >> >>> <doug.garstang@gmail.com> >> >>> wrote: >> >>>> >> >>>> Does switching to external nodes require a forklift approach? >> >>>> >> >>>> The other day, I specified an external node script in puppet.conf, >> >>>> and >> >>>> puppet complained about every single node that wasn''t handled by the >> >>>> external script. It would be nice (and more realistic) to be able to >> >>>> cut one node over at a time. Is this possible? >> >>> >> >>> Absolutely. >> >>> My external node script just returns the default config for any node >> >>> it >> >>> can''t find a specific config for. >> >> >> >> That''s not going to work. When the node isn''t defined as an external >> >> node, I want it to use the node manifest file, not a default. If I was >> >> going to start using external nodes, some nodes would be external and >> >> some nodes would not be external, until they where all converted. It >> >> looks like while this was the case, nothing would work. >> > >> > As I understood things, external nodes is supposed to work as an >> > overlay on top of site.pp >> > >> > Is this not working if you just return an empty list of >> > classes/variables for a node? >> > >> > IIRC this works this way today -- let us know if there''s a problem with >> > it. >> >> Sorry, I really don''t follow you. The external node is specified in >> the puppet.conf file. Doesn''t that mean ALL nodes are run through >> it??? > > I believe what Michael is saying is rather than returning *nothing*, you > should return an empty node definition with empty parameters/classes.If the external node script returns an empty node, that might be fine for making sure the client runs cleanly, and doesn''t break anything that''s already deployed. However, it will also mean that any changes made to the node manifest file will be ignored. That seems kinda bad... What''s the state of storedconfigs these days? Doug. -- 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 Thu, May 27, 2010 at 2:56 PM, Douglas Garstang <doug.garstang@gmail.com>wrote:> On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten <nigelk@google.com> wrote: > > > > > > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang < > doug.garstang@gmail.com> > > wrote: > >> > >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan < > michael@puppetlabs.com> > >> wrote: > >> > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang > >> > <doug.garstang@gmail.com> wrote: > >> >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> > >> >> wrote: > >> >>> > >> >>> > >> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang > >> >>> <doug.garstang@gmail.com> > >> >>> wrote: > >> >>>> > >> >>>> Does switching to external nodes require a forklift approach? > >> >>>> > >> >>>> The other day, I specified an external node script in puppet.conf, > >> >>>> and > >> >>>> puppet complained about every single node that wasn''t handled by > the > >> >>>> external script. It would be nice (and more realistic) to be able > to > >> >>>> cut one node over at a time. Is this possible? > >> >>> > >> >>> Absolutely. > >> >>> My external node script just returns the default config for any node > >> >>> it > >> >>> can''t find a specific config for. > >> >> > >> >> That''s not going to work. When the node isn''t defined as an external > >> >> node, I want it to use the node manifest file, not a default. If I > was > >> >> going to start using external nodes, some nodes would be external and > >> >> some nodes would not be external, until they where all converted. It > >> >> looks like while this was the case, nothing would work. > >> > > >> > As I understood things, external nodes is supposed to work as an > >> > overlay on top of site.pp > >> > > >> > Is this not working if you just return an empty list of > >> > classes/variables for a node? > >> > > >> > IIRC this works this way today -- let us know if there''s a problem > with > >> > it. > >> > >> Sorry, I really don''t follow you. The external node is specified in > >> the puppet.conf file. Doesn''t that mean ALL nodes are run through > >> it??? > > > > I believe what Michael is saying is rather than returning *nothing*, you > > should return an empty node definition with empty parameters/classes. > > If the external node script returns an empty node, that might be fine > for making sure the client runs cleanly, and doesn''t break anything > that''s already deployed. However, it will also mean that any changes > made to the node manifest file will be ignored. That seems kinda > bad... >No, I think he''s saying that if you return an empty node definition, the node manifest file will be consulted. The external node classifier just gets consulted first. This doesn''t really seem ideal. It seems like if an external node classifier doesn''t actually return anything, the manifest should be consulted.> > What''s the state of storedconfigs these days? > > Doug. > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- nigel -- 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.
Douglas Garstang
2010-May-27 22:14 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
On Thu, May 27, 2010 at 2:58 PM, Nigel Kersten <nigelk@google.com> wrote:> > > On Thu, May 27, 2010 at 2:56 PM, Douglas Garstang <doug.garstang@gmail.com> > wrote: >> >> On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten <nigelk@google.com> wrote: >> > >> > >> > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang >> > <doug.garstang@gmail.com> >> > wrote: >> >> >> >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan >> >> <michael@puppetlabs.com> >> >> wrote: >> >> > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang >> >> > <doug.garstang@gmail.com> wrote: >> >> >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nigelk@google.com> >> >> >> wrote: >> >> >>> >> >> >>> >> >> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang >> >> >>> <doug.garstang@gmail.com> >> >> >>> wrote: >> >> >>>> >> >> >>>> Does switching to external nodes require a forklift approach? >> >> >>>> >> >> >>>> The other day, I specified an external node script in puppet.conf, >> >> >>>> and >> >> >>>> puppet complained about every single node that wasn''t handled by >> >> >>>> the >> >> >>>> external script. It would be nice (and more realistic) to be able >> >> >>>> to >> >> >>>> cut one node over at a time. Is this possible? >> >> >>> >> >> >>> Absolutely. >> >> >>> My external node script just returns the default config for any >> >> >>> node >> >> >>> it >> >> >>> can''t find a specific config for. >> >> >> >> >> >> That''s not going to work. When the node isn''t defined as an external >> >> >> node, I want it to use the node manifest file, not a default. If I >> >> >> was >> >> >> going to start using external nodes, some nodes would be external >> >> >> and >> >> >> some nodes would not be external, until they where all converted. It >> >> >> looks like while this was the case, nothing would work. >> >> > >> >> > As I understood things, external nodes is supposed to work as an >> >> > overlay on top of site.pp >> >> > >> >> > Is this not working if you just return an empty list of >> >> > classes/variables for a node? >> >> > >> >> > IIRC this works this way today -- let us know if there''s a problem >> >> > with >> >> > it. >> >> >> >> Sorry, I really don''t follow you. The external node is specified in >> >> the puppet.conf file. Doesn''t that mean ALL nodes are run through >> >> it??? >> > >> > I believe what Michael is saying is rather than returning *nothing*, you >> > should return an empty node definition with empty parameters/classes. >> >> If the external node script returns an empty node, that might be fine >> for making sure the client runs cleanly, and doesn''t break anything >> that''s already deployed. However, it will also mean that any changes >> made to the node manifest file will be ignored. That seems kinda >> bad... > > No, I think he''s saying that if you return an empty node definition, the > node manifest file will be consulted. > The external node classifier just gets consulted first. > This doesn''t really seem ideal. It seems like if an external node classifier > doesn''t actually return anything, the manifest should be consulted.Aw Jeez... I wonder if someone could, like, document just how that works? Doug. -- 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.
Michael DeHaan
2010-May-27 22:17 UTC
Re: [Puppet Users] External Nodes Require a Forklift?
> > Aw Jeez... I wonder if someone could, like, document just how that works? >:) I''ll file a bug on myself to clean up that section of the doc site. I''d suspect that returning nothing is an error because it''s not YAML, but I''ll have to check. --Michael -- 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.
> What''s the state of storedconfigs these days? > > Doug. > >In what sense? I am using it right now for other pieces of infrastructure, works pretty nicely but I am not exactly large scale. What did you want to accomplish with it? -- -- Joe McDonagh Operations Engineer AIM: YoosingYoonickz IRC: joe-mac on freenode "When the going gets weird, the weird turn pro." -- 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.