Issue #6827 has been updated by Ken Barber.
Status changed from Investigating to Closed
Target version deleted (1.6.x)
This is no longer an issue:
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether c8:2a:14:0c:5d:18
inet6 fe80::ca2a:14ff:fe0c:5d18%en0 prefixlen 64 scopeid 0x6
inet 192.168.1.66 netmask 0xffffff00 broadcast 192.168.1.255
media: autoselect (100baseTX <full-duplex>)
status: active
$ facter | grep macaddress_en0
macaddress_en0 => c8:2a:14:0c:5d:18
----------------------------------------
Bug #6827: Won't find Mac Address on Mac OSX if better than 10M ethernet in
version 1.5.8
https://projects.puppetlabs.com/issues/6827
Author: Steve Simpson
Status: Closed
Priority: Normal
Assignee: Ben Hughes
Category: library
Target version:
Keywords: Mac OSX Address
Branch:
Affected Facter version:
The current match fails because the interface is 1000baseT not 10baseT. The
method in the trunk does work, so not sure how big of an issue this is.
ifconfig
...
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 58:b0:35:xx:xx:xx
inet6 fe80::5ab0:35xx:xx:xxxx%en0 prefixlen 64 scopeid 0x4
inet xxx.xxx.xxx.xxx netmask 0xffffffc0 broadcast xxx.xxx.xxx.xxx
inet6 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 autoconf
media: autoselect (1000baseT <full-duplex,flow-control>)
status: active
...
Index: facter-1.5.8/lib/facter/macaddress.rb
===================================================================
--- facter-1.5.8/lib/facter/macaddress.rb (revision 5)
+++ facter-1.5.8/lib/facter/macaddress.rb (working copy)
@@ -31,7 +31,7 @@
output = %x{/sbin/ifconfig}
output.split(/^\S/).each do |str|
- if str =~ /10baseT/ # we're wired
+ if str =~ /10baseT/ || str =~ /100baseT/ || str =~ /1000baseT/
# we're wired
str =~ /ether (\w\w:\w\w:\w\w:\w\w:\w\w:\w\w)/
ether = $1
end
--
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.