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.

Reply via email to