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
Many thanks!
On Feb 21, 2013, at 10:51 AM, 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 uns
<%= 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 puppet