hosts

Table of Contents

  1. Description
  2. Setup - The basics of getting started with hosts
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Manage /etc/hosts with a clear way to associate dual stack systems with their multiple IP addresses.

Setup

Beginning with hosts

   class { 'hosts':
     add_entries                => {
       'myhostname.example.com' => {
         'ipv4'                 => '127.0.0.1',
         'ipv6'                 => '::1',
         'aliases'              => ['myhostname', 'myname'],
         'comment'              => 'some string goes here'
       }
     }
   }

Usage

Add whatever entries you need. They will be sorted by the FQDN (top level key).

Limitations

Sorting is not optional. Sorting makes things consistent.

Development

See the github repo.