Issue #2078 has been updated by ivdmeer.

Hi,

I've tested you command on 2 versions of FreeBSD I use:

-------------------------------
[r...@druoda /data/puppet/manifests]# ruby -ripaddr -e 'puts :yep'
yep
[r...@druoda /data/puppet/manifests]# uname -a
FreeBSD druoda.kabelfoon.intern 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Mar  7 
11:23:07 CET 2007     [email protected]:/usr/obj/usr/src/sys/CN  
i386
[r...@druoda /data/puppet/manifests]# pkg_info |grep ruby
ruby-1.8.6.287,1    An object-oriented interpreted scripting language
ruby18-bdb-0.6.4    Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
ruby18-ldap-0.9.7_1 Ruby interface to LDAP API based on RFC1823
-------------------------------
[ivdm...@benthan ~]$ ruby -ripaddr -e 'puts :yep'
yep
[ivdm...@benthan ~]$ uname -a
FreeBSD benthan.kabelfoon.intern 7.1-STABLE FreeBSD 7.1-STABLE #0: Wed Feb  4 
17:13:53 UTC 2009     [email protected]:/usr/obj/usr/src/sys/CN  
i386
[ivdm...@benthan ~]$ pkg_info |grep ruby
ruby-1.8.6.287,1    An object-oriented interpreted scripting language
ruby18-bdb-0.6.4    Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
[ivdm...@benthan ~]$ pkg_info |grep facter
facter-1.5.4        A cross-platform Ruby library for retrieving facts from OS
[ivdm...@benthan ~]$ pkg_info |grep puppet
puppet-0.24.7       A configuration management framework written in Ruby
-------------------------------

Ik hope this helps.

Kind regards,

Ivo van der Meer
----------------------------------------
Bug #2078: ip.rb errors command not found
http://projects.reductivelabs.com/issues/2078

Author: ivdmeer
Status: Needs more information
Priority: Normal
Assigned to: 
Category: library
Target version: 1.6.0
Complexity: Unknown
Keywords: facter, ip.rb


When running puppet or facter from command line on FreeBSD I get the following 
error:

$ facter
/usr/local/lib/ruby/site_ruby/1.8/facter/util/ip.rb:145: command not found:

Puppet still works, but I'm not sure what the impact is for this error.

<snip>
    144     def self.get_network_value(interface)
    145         require 'ipaddr'
    146
    147         ipaddress = get_interface_value(interface, "ipaddress")
    148         netmask = get_interface_value(interface, "netmask")
    149
    150         if ipaddress && netmask
    151             ip = IPAddr.new(ipaddress, Socket::AF_INET)
    152             subnet = IPAddr.new(netmask, Socket::AF_INET)
    153             network = ip.mask(subnet.to_s).to_s
    154         end
    155     end
</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://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to