Puppet Class: puppet
- Defined in:
- manifests/init.pp
Overview
Class: puppet
Performs common puppet setup functionality. Called implicitly from puppet::agent and puppet::master
Parameters
- version
-
Version of the packages to install
- conf
-
Puppet configuration file contents
- conf_merge
-
Whether to merge configuration hash with hiera
- hiera
-
Hiera configuration file contents
- repo_manage
-
Whether to enable module control of the puppet apt repository
- repo_location
-
Where the repository resides
- repo_release
-
Release of the repository to use
- repo_repos
-
The repositories to enable
- repo_key
-
The GPG key fingerprint to accept
- repo_key_source
-
Where to source the GPG key from
- service_type
-
Which puppet agent service type to use
- service_iterval
-
How often to run the agent
Notes
-
Chances are you are defining hiera in hiera, and as such any variable substitutions must be escaped. To generate the correct output for “‘modules/%calling_module“` you will need to specify the hiera input as “`modules/%literal(’%‘)calling_module“`
-
PuppetLabs only support LTS, so for releases like utopic you will need to use the trusty release to get upstream packages
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'manifests/init.pp', line 54
class puppet (
String $version,
Puppet::Conf $conf,
Boolean $conf_merge,
Puppet::Hiera $hiera,
Boolean $repo_manage,
String $repo_location,
String $repo_release,
String $repo_repos,
String $repo_key,
String $repo_key_source,
Puppet::ServiceType $service_type,
Integer $service_iterval,
) {
contain ::puppet::repo
contain ::puppet::install
contain ::puppet::config
contain ::puppet::hiera
contain ::puppet::service
Class['::puppet::repo'] ->
Class['::puppet::install'] ->
Class['::puppet::config'] ->
Class['::puppet::hiera'] ->
Class['::puppet::service']
}
|