On Thu, May 27, 2010 at 2:58 PM, Nigel Kersten <nig...@google.com> wrote: > > > On Thu, May 27, 2010 at 2:56 PM, Douglas Garstang <doug.garst...@gmail.com> > wrote: >> >> On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten <nig...@google.com> wrote: >> > >> > >> > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang >> > <doug.garst...@gmail.com> >> > wrote: >> >> >> >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan >> >> <mich...@puppetlabs.com> >> >> wrote: >> >> > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang >> >> > <doug.garst...@gmail.com> wrote: >> >> >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten <nig...@google.com> >> >> >> wrote: >> >> >>> >> >> >>> >> >> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang >> >> >>> <doug.garst...@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-us...@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.