Manage host entries.
Can ensure entries for localhost, localhost6, and $::fqdn, including aliases and optionally purge unmanaged entries.
===
This module targets Puppet v3. It should work with any *nix based system that uses /etc/hosts
.
===
Boolean to enable ipv4 localhost entry
- Default: true
Boolean to enable ipv6 localhost entry
- Default: true
Boolean to enable entry for fqdn
- Default: true
String or Array of aliases for fqdn
- Default: $::hostname
String or Array of aliases for localhost
- Default: [ 'localhost', 'localhost4', 'localhost4.localdomain4' ]
String or Array of aliases for localhost6
- Default: [ 'localhost6', 'localhost6.localdomain6' ]
Boolean to optionally purge unmanaged entries from hosts
- Default: false
String for path to hosts file
- Default: /etc/hosts
Boolean to optionally collect all the exported Host resources
- Default: false
Hash of host entries
- Default: undef
===
--- hosts::host_entries: 'servicename.example.com': ip: '10.0.0.5' host_aliases: - 'servicename'