Forge Home


Manage IPv4 and IPv6 entries in /etc/hosts


30,911 latest version

4.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released May 23rd 2014
This version is compatible with:
  • RedHat, CentOS, Debian, Ubuntu, Solaris

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'uol-host6', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add uol-host6
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install uol-host6 --version 0.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Tags: ipv6, host, ipv4


uol/host6 — version 0.0.1 May 23rd 2014

IPv4/IPv6 Hosts Module


Use like the resource host, but is keyed on IP eg

host6 { 'localhost-v4':
  ip           => '',
  hostname     => 'localhost.localdomain',
  host_aliases => ['localhost'],

host6 { 'localhost-v6':
  ip           => '::1', 
  hostname     => 'localhost.localdomain',
  host_aliases => ['localhost'],


host6 { '':
  hostname => 'localhost',

host6 { '::1':
  hostname => 'localhost',


This module is derived from the host resource from within puppet.