Issue #2543 has been updated by Paul Nasrat. Status changed from Unreviewed to Needs more information Assigned to set to Paul Nasrat
I think a more compatible way would be to use inet as the family (this should work across ifconfig on all supported platforms AFAIK). It should be able to write a test for this, can you supply the full ifconfig -a output on the box you're having issues with. ---------------------------------------- Bug #2543: Error messages with IPv6-enabled interfaces. http://projects.reductivelabs.com/issues/2543 Author: Maciej BliziĆski Status: Needs more information Priority: Normal Assigned to: Paul Nasrat Category: library Target version: Complexity: Unknown Keywords: <pre> cabbage ~ # facter --puppet no such file to load -- ldap ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface </pre> A workaround would be to skip the IPv6 interface names: <pre><code class="diff"> index 9fb7034..748bb1d 100644 --- a/lib/facter/util/ip.rb +++ b/lib/facter/util/ip.rb @@ -59,7 +59,7 @@ module Facter::Util::IP when 'Linux', 'OpenBSD', 'NetBSD', 'FreeBSD', 'Darwin' output = %x{/sbin/ifconfig -a} when 'SunOS' - output = %x{/usr/sbin/ifconfig -a} + output = %x{/usr/sbin/ifconfig -a4} end output end </code></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 -~----------~----~----~----~------~----~------~--~---
