Issue #15001 has been updated by Andrew Elwell.
Assignee set to Andrew Elwell
We should maybe consider using 'ip addr'?
Example from Fedora 17 laptop
[aelwell@pcitgtelwell ~]$ ip addr | grep inet
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
inet 128.141.237.54/16 brd 128.141.255.255 scope global wlan0
inet6 fe80::221:5cff:fe8a:1983/64 scope link
[aelwell@pcitgtelwell ~]$ ifconfig | grep inet
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
inet 128.141.237.54 netmask 255.255.0.0 broadcast 128.141.255.255
inet6 fe80::221:5cff:fe8a:1983 prefixlen 64 scopeid 0x20<link>
[aelwell@pcitgtelwell ~]$ facter ipaddress
137.138.252.94
[aelwell@pcitgtelwell ~]$ hostname -f
pcitgtelwell.cern.ch
[aelwell@pcitgtelwell ~]$ host 137.138.252.94
94.252.138.137.in-addr.arpa domain name pointer pcitgtelwell.cern.ch.
[aelwell@pcitgtelwell ~]$
----------------------------------------
Bug #15001: ipadress fact fails on Fedora 17
https://projects.puppetlabs.com/issues/15001#change-65013
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.