Forge Home

13,201 downloads

12,254 latest version

2.5 quality score

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
  • RedHat
    ,
    CentOS
    ,
    Debian
    ,
    Ubuntu

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'}
    }
}