Just to make sure I fully understand this subject, could some provide a little meta-example of what node variables and dynamic scoping are? I'm sure I'm not the only one unsure here :)
On Thu, Dec 22, 2011 at 16:07, jcbollinger <john.bollin...@stjude.org>wrote: > > > On Dec 21, 3:07 pm, zoredache <franc...@gmail.com> wrote: > > On Nov 17, 2:21 pm, jcbollinger > There is none. Variables declared > > inside node definitions are not> accessible elsewhere except via > > dynamic scoping. As a result, in 2.8> they will not be accesible > > outside their node definitions at all. > > > > Which almost makes you wonder why there isn't didn't also include some > > kind of warning when any variables are set in the node scope. It > > sounds like when they are going to be almost completely pointless > > after the 2.8 upgrade. > > In 2.7, if you use node variables outside their node's definition then > you will get a dynamic scope warning, just like you do with any other > use of dynamic scoping. If you use node variables in a manner that > does not involve dynamic scoping then it will continue to work in 2.8, > and I don't see why any warning would be warranted for that. > > It is true that most of the usefulness of node variables is tied to > dynamic scoping, and therefore that their usefulness will be small > once dynamic scoping goes away. Although I make little use of node > variables myself, I think this is a step backwards. > > > John > > -- > 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. > > -- Walter Heck -- follow @walterheck on twitter to see what I'm up to! -- Check out my new startup: Server Monitoring as a Service @ http://tribily.com Follow @tribily on Twitter and/or 'Like' our Facebook page at http://www.facebook.com/tribily -- 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.