[csw-maintainers] New Facter in testing

Maciej (Matchek) Blizinski maciej at opencsw.org
Tue Aug 18 12:43:24 CEST 2009


On Mon, Aug 17, 2009 at 6:22 PM, Maciej (Matchek)
Blizinski<maciej at opencsw.org> wrote:
> On Tue, Aug 11, 2009 at 11:50 AM, Gary Law<glaw at opencsw.org> wrote:
>> New facter (1.5.6) in testing... Enjoy...
>
> It looks like facter can't figure out the per-interface IP addresses.
> Not a packaging issue though.

The patch would be:

--- /opt/csw/lib/ruby/site_ruby/1.8/facter/util/ip.rb   2009-03-29
23:16:30.000000000 +0100
+++ ip.rb       2009-08-18 11:37:34.675299822 +0100
@@ -16,7 +16,7 @@
             :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})/
         }


But I found the actual problem: I didn't have facter-1.5.6 installed.
For some reason, the usual 'pkg-get -s
http://mirror.opencsw.org/opencsw/testing -U -u facter' installed
facter-1.5.4 instead of facter-1.5.6.

Maciej



More information about the maintainers mailing list