How to check a facter from puppet facts when it's in a hash?

asked 2017-08-08 10:25:22 -0600

leeand00 gravatar image

I was using the facter $ipaddress_ethX when I noticed that it is listed as a legacy facter in the documentation.

I then found this question, in which they appear to be using the correct non-legacy facter for collecting the ip address:

However whereas it's easy to check the legacy facter with puppet facts --format-as yaml <hostname> | grep ipaddress

I don't know how you use the puppet facts command to check map type facts, is that possible?

edit retag flag offensive close merge delete