Issue #2055 has been updated by josh.
This is a simple typo in lib/facter/util/ip.rb. The REGEX_MAP has the wrong key
for the SunOS IP address regex. The key is ":addr" when it should be
":ipaddress".
<pre>
diff --git a/lib/facter/util/ip.rb b/lib/facter/util/ip.rb
index a57bf08..8ad7559 100644
--- a/lib/facter/util/ip.rb
+++ b/lib/facter/util/ip.rb
@@ -16,7 +16,7 @@ module Facter::Util::IP
:netmask => /netmask\s+0x(\w{8})/
},
:sunos => {
- :addr => /inet\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
+ :ipaddress => /inet\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
:macaddress =>
/(?:ether|lladdr)\s+(\w?\w:\w?\w:\w?\w:\w?\w:\w?\w:\w?\w)/,
:netmask => /netmask\s+(\w{8})/
}
</pre>
----------------------------------------
Bug #2055: Interface ip addresses are not properly separated out in Solaris
http://projects.reductivelabs.com/issues/2055
Author: cwebber
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Keywords:
Only the primary interface ip address is displayed in versions of facter after
1.5.2. In 1.5.2 there is a separate ipaddress_interface for each interface.
1.5.3 and 1.5.4 remove this feature.
*1.5.2*
<pre>
facterversion => 1.5.2
fqdn => cheddar.domain
hardwareisa => sparc
hardwaremodel => sun4v
hostname => cheddar
interfaces => lo0,lo0:1,bge0,bge0:1
ipaddress => 138.23.xxx.xx
ipaddress_bge0 => 138.23.xxx.xx
ipaddress_bge0:1 => 138.23.xxx.yyy
ipaddress_lo0:1 => 127.0.0.1
kernel => SunOS
</pre>
*1.5.3*
<pre>
facterversion => 1.5.3
fqdn => cheddar.domain
hardwareisa => sparc
hardwaremodel => sun4v
hostname => cheddar
id => root
interfaces => lo0,lo0_1,bge0,bge0_1
ipaddress => 138.23.xxx.xx
kernel => SunOS
</pre>
*1.5.4*
<pre>
facterversion => 1.5.4
fqdn => cheddar.domain
hardwareisa => sparc
hardwaremodel => sun4v
hostname => cheddar
id => root
interfaces => lo0,lo0_1,bge0,bge0_1
ipaddress => 138.23.xxx.xx
kernel => SunOS
</pre>
----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---