Hi,
On 07/13/2012 09:46 PM, david boldt wrote:
> what is the incantation that would work for iteration?
>
> scope.lookupvar('::varname').each
this looks all right but
> Produces puppet error: undefined method `each' for :undefined:Symbol
it seems that the lookup itself fails. Are you certain
what is the incantation that would work for iteration?
scope.lookupvar('::varname').each
Produces puppet error: undefined method `each' for :undefined:Symbol
On Tuesday, September 20, 2011 2:53:35 PM UTC-4, Alessandro Franceschi
wrote:
>
> Use something like <%= scope.lookupvar('hostname') %
Ok.
so template and class share the scope and tehre's no need to qualify its
vars.
Thanks for your replies and for the link.
Cheers,
Arnau
--
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@googleg
There's also more documentation on using puppet specific methods in
templates at http://docs.puppetlabs.com/guides/templating.html
On Tue, Sep 20, 2011 at 11:53 AM, Alessandro Franceschi wrote:
> Use something like <%= scope.lookupvar('hostname') %>
>
> On Sep 20, 11:06 am, Arnau Bria wrote:
>
Use something like <%= scope.lookupvar('hostname') %>
On Sep 20, 11:06 am, Arnau Bria wrote:
> Hi all,
>
> is there a way for qualifying variables inside a template?
> I've tried :
>
> Name = <%= "${::hostname}" %>
>
> but the var gets "${::hostname}" value.
>
> thinking in version 2.8, is it
>