Other options: 

<%= scope.lookupvar("macaddress_#{my_lan1}") %>

Also, the stdlib module has a function useful for doing this outside of 
templates: 

https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/getvar.rb


On Thursday, February 21, 2013 8:51:15 AM UTC-8, windowsrefund wrote:
>
>
> <%= eval "macaddress_" + my_lan1 %>
>
> That will return the appropriate fact based on the value of my_lan1
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to