Forge Home

14,065 downloads

12,820 latest version

2.5 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

  • 1.0.5 (latest)
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Sep 10th 2014
This version is compatible with:
  • Puppet Enterprise 3.2.x
  • Puppet 3.2.x
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'lexance-hosts', '1.0.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add lexance-hosts
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install lexance-hosts --version 1.0.5

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.

Download

Documentation

lexance/hosts — version 1.0.5 Sep 10th 2014

/etc/hosts Puppet Module

Manage (dualstack-)hosts in /etc/hosts .

Requirements

  • puppetlabs/stdlib >= 4.0.0

Usage

Various alt hostnames my be specified. IP Addresses are validated. At least a IPv4 OR IPv6 address must be specified.

class { 'hosts':
    hosts => {
        'sidious.local' => {alt =>['sidious', 'puppet'], ipv4 => '192.168.2.1, ipv6 => 'fdc9:7739:4b55:da6:0:0:0:2'},
        'vader.local' => {alt =>['vader'], ipv4 => '192.168.2.2', ipv6 => 'fdc9:7739:4b55:da6:0:0:0:10'}
    }
}