Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-12 Thread Ryan Whitehurst
John Bollinger writes: Shocking. To the best of my understanding, it should not work in EPP any more than it does in ERB or Puppet DSL. If it does work in EPP then that would be a bug, and it would be unwise to rely on that bug to remain unfixed. Note that I was referring to accessing res

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-12 Thread John Bollinger
On Tuesday, August 11, 2015 at 12:39:49 PM UTC-5, Ryan Whitehurst wrote: > > > Martin Alfke writes: > > > How can I access the variable from the first define? I can > > change the second define to have another parameter so it knows > > about the template variable. Is there any other solution

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-12 Thread Felix Frank
Oh my, you were relying on actual buggy behavior. https://projects.puppetlabs.com/issues/22800 Ah, the memories... :-) Cheers, Felix On 08/12/2015 09:00 AM, Martin Alfke wrote: > Hi Ryan, > On 11 Aug 2015, at 19:22, Ryan Whitehurst wrote: > >> > >> > Martin Alfke writes: >> > >>> >> How can

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-12 Thread Martin Alfke
Hi Ryan, On 11 Aug 2015, at 19:22, Ryan Whitehurst wrote: > > Martin Alfke writes: > >> How can I access the variable from the first define? I can change the second >> define to have another parameter so it knows about the template variable. Is >> there any other solution available? > It's no

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-11 Thread Ryan Whitehurst
Martin Alfke writes: How can I access the variable from the first define? I can change the second define to have another parameter so it knows about the template variable. Is there any other solution available? It's not exactly the same, but this works now, using EPP instead of ERB: sco

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-11 Thread R.I.Pienaar
- Original Message - > From: "Martin Alfke" > To: "puppet-dev" > Sent: Tuesday, August 11, 2015 8:37:55 AM > Subject: [Puppet-dev] Accessing variables from templates in wrapped defines > Hi, > > I have an issue with templates and variab

[Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-11 Thread Martin Alfke
Hi, I have an issue with templates and variable lookup when used in wrapped defines - which was working in older puppet versions (maybe due to the dynamic variable lookup): e.g. The following code: The first define setting a local variable and calling a second define with a parameter: cat de