Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
files
lib
manifests
spec
templates
tests
.gitignore
Modulefile
README.markdown
metadata.json

README.markdown

Module for reporting IPv6 addresses

ipaddress6.rb

Generates the standalone ipaddress6 fact. Supports the platforms I had access to for testing; Linux, Solaris, FreeBSD, OpenBSD, and OS X. The idea here was not to rewrite the ipaddress fact but build on familiar code and concepts.

If the fact can detect a relationship between the inet6 default route and an interface with a valid inet6 address it will return this address, else it returns the fist valid address that is parsed out of ifconfig.

interfaces.rb

Have to include this even though it is included in the facter distribution because it needs a one line patch to include the creation of ipaddress6 interface facts.

util/ip.rb

Needs to be patched from the standard facter distribution because the ipaddress6 regex has to be added to the supported platforms I have tested.

Installation

  • Puppet agents need pluginsync enabled in the puppet.conf: pluginsync = true
  • Run puppet-module tool and install module to your modulepath: puppet-module install ody-ipaddress6
  • Rename ody-ipaddress6: mv ody-ipaddress6 ipaddress6

Notes

There are still a few bugs/inconsistencies related to interfaces.rb and util/ip.rb across various platforms. These issues are present in those shipped with facter as well so once I work them out here I will submit patches to the facter project.

Something went wrong with that request. Please try again.