Coder Social home page Coder Social logo

puppet-module-hosts's Introduction

hosts module

Manage host entries.

Can ensure entries for localhost, localhost6, and $::fqdn, including aliases and optionally purge unmanaged entries.

Build Status

===

Compatibility

This module has been tested to work on the following systems with the latest Puppet v3, v3 with future parser, v4, v5 and v6. See .travis.yml for the exact matrix of supported Puppet and ruby versions.

It should work with any *nix based system that uses /etc/hosts.

===

Parameters

enable_ipv4_localhost

Boolean to enable ipv4 localhost entry

  • Default: true

enable_ipv6_localhost

Boolean to enable ipv6 localhost entry

  • Default: true

enable_fqdn_entry

Boolean to enable entry for fqdn

  • Default: true

use_fqdn

When enabled use the ${::fqdn} fact to determine the hosts entry for the local node.

  • Default: true

fqdn_host_aliases

String or Array of aliases for fqdn

  • Default: $::hostname

localhost_aliases

String or Array of aliases for localhost

  • Default: [ 'localhost', 'localhost4', 'localhost4.localdomain4' ]

localhost6_aliases

String or Array of aliases for localhost6

  • Default: [ 'localhost6', 'localhost6.localdomain6' ]

purge_hosts

Boolean to optionally purge unmanaged entries from hosts

  • Default: false

target

String for path to hosts file

  • Default: /etc/hosts

collect_all

Boolean to optionally collect all the exported Host resources

  • Default: false

host_entries

Hash of host entries

  • Default: undef

===

Hiera example of host_entries

---
hosts::host_entries:
  'servicename.example.com':
    ip: '10.0.0.5'
    host_aliases:
      - 'servicename'

puppet-module-hosts's People

Contributors

anders-k-lindgren avatar anders-larsson avatar cyberline avatar ghoneycutt avatar jonathanbower avatar jwennerberg avatar mannbach avatar nagas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.