Puppet Class: hosts

Defined in:
manifests/init.pp

Summary

Manage `/etc/hosts`

Overview

Examples:

include hosts

Parameters:

  • hosts (Hash) (defaults to: {})

    Hash of host resource entries



9
10
11
12
13
14
15
16
17
18
# File 'manifests/init.pp', line 9

class hosts (
  Hash $hosts = {},
) {

  $hosts.each |$name, $host| {
    host { $name:
      * => $host,
    }
  }
}