hosts
Table of Contents
- Description
- Setup - The basics of getting started with hosts
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- 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.