Puppet Class: profile::base::puppet

Defined in:
modules/profile/manifests/base/puppet.pp

Overview

profile to manage puppet

Parameters:

  • puppetmaster (String) (defaults to: lookup('puppetmaster'))
  • ca_server (String) (defaults to: lookup('puppet_ca_server'))
  • ca_source (Stdlib::Filesource) (defaults to: lookup('puppet_ca_source'))
  • manage_ca_file (Boolean) (defaults to: lookup('manage_puppet_ca_file'))
  • interval (Integer[1,59]) (defaults to: lookup('profile::base::puppet::interval'))
  • environment (String) (defaults to: lookup('profile::base::puppet::environment'))
  • serialization_format (String) (defaults to: lookup('profile::base::puppet::serialization_format'))
  • dns_alt_names (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::base::puppet::dns_alt_names'))
  • certificate_revocation (Optional[String]) (defaults to: lookup('profile::base::puppet::certificate_revocation'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/profile/manifests/base/puppet.pp', line 2

class profile::base::puppet(
  String              $puppetmaster           = lookup('puppetmaster'),
  String              $ca_server              = lookup('puppet_ca_server'),
  Stdlib::Filesource  $ca_source              = lookup('puppet_ca_source'),
  Boolean             $manage_ca_file         = lookup('manage_puppet_ca_file'),
  Integer[1,59]       $interval               = lookup('profile::base::puppet::interval'),
  String              $environment            = lookup('profile::base::puppet::environment'),
  String              $serialization_format   = lookup('profile::base::puppet::serialization_format'),
  Array[Stdlib::Fqdn] $dns_alt_names          = lookup('profile::base::puppet::dns_alt_names'),
  Optional[String]    $certificate_revocation = lookup('profile::base::puppet::certificate_revocation'),
) {

  class { 'base::puppet':
      ca_source              => $ca_source,
      manage_ca_file         => $manage_ca_file,
      server                 => $puppetmaster,
      ca_server              => $ca_server,
      dns_alt_names          => $dns_alt_names,
      environment            => $environment,
      interval               => $interval,
      certificate_revocation => $certificate_revocation,
  }
  class { 'puppet_statsd':
      statsd_host   => 'statsd.eqiad.wmnet',
      metric_format => 'puppet.<%= metric %>',
  }
  class { 'prometheus::node_puppet_agent': }
  include profile::puppet::client_bucket
}