Re: [Puppet Users] ERB variable scope

2017-10-09 Thread warron.french
At least you are on PE 5.3, Red Hat Satellite's implementation of PE-3.8 doesn't even support EPP templates. -- Warron French On Mon, Oct 9, 2017 at 10:42 AM, Daniel Urist wrote: > Thanks very much. > > It would be great if the template doc page (https://docs.puppet.com

Re: [Puppet Users] ERB variable scope

2017-10-09 Thread Daniel Urist
Thanks very much. It would be great if the template doc page ( https://docs.puppet.com/puppet/5.3/lang_template.html) gave more guidance on epp vs erp, use cases for each and possible gotchas like this. On Fri, Oct 6, 2017 at 4:17 PM, Henrik Lindberg wrote: > On 06/10/17 11:28, Daniel Urist wro

Re: [Puppet Users] ERB variable scope

2017-10-06 Thread Henrik Lindberg
On 06/10/17 11:28, Daniel Urist wrote: I've noticed in classes with multiple templates that ERB variables seem to share a single scope. That caught me by surprise-- is that intended behavior? Intended or not - that is the behavior, and this is Ruby so it is possible to mutate things that sh