command line. I can't find rhyme nor reason why. Here's a demo to
show what I mean:
# facter --version
# facter --yaml fqdn macaddress lsbdistcodename
We had been using the above command for a while to extract values for
a shell script. However we recently discovered that when we have a
Linux box who's primary NIC is "br123" (a bridge device) that the
macaddress fact shows up as "all zeros" like above. (I consider this a
bug but... that's not the point). Luckily macaddress_eth0 shows the
real MAC address no matter what. Therefore, we made the simple code
change to use the macaddress_eth0 fact instead. However now facter
goes silent on most of the values:
# facter --yaml fqdn macaddress_eth0 lsbdistcodename
This seems to be just related to facts on the command line. If I do a
plain "facter --yaml" I see all the values as expected. See?
# facter --yaml | egrep '^ (fqdn|macaddress_eth0|lsbdistcodename|macaddress):'
Is this a bug or a feature? Is there a workaround?
Thanks in advance,
P.S. macaddress and fqdn changed for obvious reasons.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.