On Tuesday, June 19, 2012 7:20:47 AM UTC-5, R.I. Pienaar wrote:
> > Right now I'm referencing the variable as "<%= ldap_server %>" and > > puppet is complaining on startup about dynamic scoping and telling > > me this will break. So clearly this isn't the way to go otherwise I > > wouldn't have the warning. > > I think this warning is gone in a slightly newer version of 2.7.x > Have I missed a change in plan for node variables, so that in Puppet 3 they remain accessible outside node declarations? Does that form of dynamic scoping live on? Whether referencing node variables is deprecated or not, there are several alternatives: - global variables can be used instead if you have an ENC to set node-specific values for them, and - some people would recommend parameterizing your class, - but I would recommend putting your node-specific data in an external data store and accessing them via hiera. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uCk1FJOcTYAJ. 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.