Thanks Francois, that works as well!
On Thu, Apr 14, 2016 at 4:20 AM, Francois Lafont <
[email protected]> wrote:
> Hello,
>
> Try this in your template:
>
> HWADDR is <%=
> scope.lookupvar('::networking')['interfaces']['eth0']['mac'] %>
>
> or this:
>
> HWADDR is <%=
> scope.lookupvar('::facts')['networking']['interfaces']['eth0']['mac'] %>
>
> Now, with Puppet 4, facts are structured. You can use the global $::facts
> hash.
>
> Regards.
> François Lafont
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/570F7D09.6080501%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAFY%2BPo_ZqqxoVKysqxnJA74tnh9vLb-TWLFRnmN6e8gkYLj%3D_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.