Re: [Puppet Users] Variable interpolation challenge

2014-08-27 Thread José Luis Ledesma
Hi, You can also use getvar or inline_template. Regards El 27/08/2014 18:00, "Henrik Lindberg" escribió: > On 2014-27-08 15:02, Gav wrote: > >> Aaron, have you had problems with this in Puppet 3? Using similar code >> in 3.6.0 does not return the fact value. >> >> Cheers, >> Gavin >> >> On Tues

Re: [Puppet Users] Variable interpolation challenge

2014-08-27 Thread Henrik Lindberg
On 2014-27-08 15:02, Gav wrote: Aaron, have you had problems with this in Puppet 3? Using similar code in 3.6.0 does not return the fact value. Cheers, Gavin On Tuesday, 24 May 2011 16:22:23 UTC+1, Aaron Grewell wrote: Thanks Nan, until they make a function out of that I'll keep the te

Re: [Puppet Users] Variable interpolation challenge

2014-08-27 Thread Gav
Aaron, have you had problems with this in Puppet 3? Using similar code in 3.6.0 does not return the fact value. Cheers, Gavin On Tuesday, 24 May 2011 16:22:23 UTC+1, Aaron Grewell wrote: > > Thanks Nan, until they make a function out of that I'll keep the template > in my cheat sheet. > > On Mo

Re: [Puppet Users] Variable interpolation challenge

2011-05-24 Thread Aaron Grewell
Thanks Nan, until they make a function out of that I'll keep the template in my cheat sheet. On Mon, May 23, 2011 at 4:53 PM, Nan Liu wrote: > On Mon, May 23, 2011 at 3:51 PM, Aaron Grewell > wrote: > > I'm having a problem with variable interpolation that I haven't found a > good > > solution

Re: [Puppet Users] Variable interpolation challenge

2011-05-23 Thread Nan Liu
On Mon, May 23, 2011 at 3:51 PM, Aaron Grewell wrote: > I'm having a problem with variable interpolation that I haven't found a good > solution to.  I want to use a variable as part of the name of a fact, but > the interpolation doesn't work as expected.  I've allowed for passing the > mac address

[Puppet Users] Variable interpolation challenge

2011-05-23 Thread Aaron Grewell
I'm having a problem with variable interpolation that I haven't found a good solution to. I want to use a variable as part of the name of a fact, but the interpolation doesn't work as expected. I've allowed for passing the mac address into my define() but if it's not provided I want to look it up