Issue #15001 has been updated by John Florian.
I think that would be the correct thing to do. While it wouldn't be hard to
revise the existing regex to work for both formats, the format of 'ip addr show
dev IFNAME' hasn't changed in a long time, if ever. Besides the man page for
ifconfig clearly states:
<blockquote>
NOTE
This program is obsolete! For replacement check ip addr ...
</blockquote>
----------------------------------------
Bug #15001: ipadress fact fails on Fedora 17
https://projects.puppetlabs.com/issues/15001#change-65016
Author: John Florian
Status: Unreviewed
Priority: Normal
Assignee: Andrew Elwell
Category: facter
Target version:
Affected Puppet version: 2.7.13
Keywords:
Branch:
The output format of /sbin/ifconfig has changed as of Fedora 17
(net-tools-1.60-134.20120127git.fc17.x86_64) and now ipaddress.rb can no longer
correctly parse it. Shown below are snips from the output of ifconfig on
Fedora 16 (net-tools-1.60-126.fc16.x86_64) and Fedora 17 that illustrate the
difference:
F16:
<pre>
br0 Link encap:Ethernet HWaddr B8:AC:6F:97:5E:E1
inet addr:10.1.0.158 Bcast:10.1.255.255 Mask:255.255.0.0
inet6 addr: fe80::baac:6fff:fe97:5ee1/64 Scope:Link
</pre>
<snip>
F17:
<pre>
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.192.143 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::5054:ff:fe63:96e5 prefixlen 64 scopeid 0x20<link>
</pre>
<snip>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.