Issue #19951 has been updated by Garth Kidd.
>From a Stack Overflow question, perhaps we could get IPv4 without shelling:
Socket.ip_address_list.detect{|intf| intf.ipv4? and !intf.ipv4_loopback?
and !intf.ipv4_multicast? and !intf.ipv4_private?}
Link and discussion: http://stackoverflow.com/a/7809076/5700
… except, ip_address_list isn't in the Ruby 1.8.7 packaged with Puppet on
Windows. So much for that good idea.
Background: I have a Windows Server 2008 box giving its ISATAP address by
preference. I need to filter it out. We've disabled IPv6, ISATAP, 6to4, and
teredo, and we're still getting $ipaddress as "::1" (taken from the
still-present die die die tunnel adapter) rather than the IPv4 address sitting
there in plain sight on the physical adapter. We've even added a hosts file
entry. That was good enough to persuade ping to target the IPv4 address, but
not for Facter.
----------------------------------------
Feature #19951: add ipaddress_<int> and ip6address_<int> to facter
https://projects.puppetlabs.com/issues/19951#change-91721
* Author: Tony Kew
* Status: Investigating
* Priority: Normal
* Assignee: Tony Kew
* Category:
* Target version:
* Keywords:
* Branch:
* Affected Facter version: development
----------------------------------------
Add code to produce variables for IPv4 and IPv6 addresses for all interfaces
Sample files attached that work (at least for me) with Linux
--
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://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.