> > I'll try look through your report tomorrow morning before work, but if > > you have time right now can you see if it matches. > > Yes, looks exactly like my problem. >
Hello, I had the same kind of issue this morning with facter issuing "Timed out seeking value for ipaddress", while i was fighting with a new DNS configuration on a CentOS 5.3 box. I think i have found a little bug in facter/ipaddress.rb: if you look at the output of ifconfig on that box, you get: eth0 Link encap:Ethernet HWaddr 12:31:3A:00:55:86 inet adr:10.251.90.116 Bcast:10.251.91.255 Masque: 255.255.254.0 ^ while the regular expression used for Linux boxes in facter/ ipaddress.rb is: if str =~ /inet addr:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/ ^ i think it should be something along /inet ad+r: .../ That one makes facter fallback on dns resolution to get the IP address, which is not an option in my environment, and doesn't work when no DNS server is available. Patching my /usr/lib/ruby/site_ruby/1.8/facter/ipaddress.rb makes everything work as expected (and way faster). I don't have many different distributions to test on but ifconfig issue "inet adr: ..." on the following systems: - Fedora release 10 (Cambridge) - CentOS release 5.3 (Final) - Ubuntu 8.04 Server LTS (Hardy Heron) i386 I am also not sure the "fallback to Resolv.getaddress" is very appropriate when one cannot parse the output of ifconfig, or if the network configuration is invalid ... Thanks, Erwan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---