host6

Manage IPv4 and IPv6 entries in /etc/hosts

University of Leeds

uol

26,474 downloads

26,474 latest version

4.0 quality score

Version information

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

Start using this module

Tags: ipv4, ipv6, host

Documentation

uol/host6 — version 0.0.1 May 23rd 2014

IPv4/IPv6 Hosts Module

Usage

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

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

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

or

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

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

Notes

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