Puppet Class: puppet::profile::compiler

Defined in:
manifests/profile/compiler.pp

Summary

Creating and configuring Puppet Server compilers

Overview

Creating and configuring Puppet Server compilers puppet.com/docs/puppet/7/server/scaling_puppet_server.html

Examples:

include puppet::profile::compiler

Parameters:

  • ca_server (Stdlib::Host)
  • platform_name (Puppet::Platform) (defaults to: 'puppet7')
  • server (Stdlib::Host) (defaults to: $ca_server)
  • use_common_env (Boolean) (defaults to: false)
  • common_envname (Optional[String]) (defaults to: undef)
  • use_puppetdb (Boolean) (defaults to: true)
  • puppetdb_server (Stdlib::Host) (defaults to: 'puppet')
  • enc_envname (Optional[String]) (defaults to: undef)

    The name of ENC environment inside Puppet environments path. Use it to override default value ‘enc’

  • r10k_crontab_setup (Boolean) (defaults to: false)

    Whether to setup crontab job to sync Puppet code for Puppet compiler

  • manage_webserver_conf (Boolean) (defaults to: false)

    Whether to manage webserver.conf or not



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'manifests/profile/compiler.pp', line 27

class puppet::profile::compiler (
  Stdlib::Host $ca_server,
  Puppet::Platform $platform_name = 'puppet7',
  Stdlib::Host $server = $ca_server,
  Boolean $use_common_env = false,
  Optional[String] $common_envname = undef,
  Boolean $use_puppetdb = true,
  Stdlib::Host $puppetdb_server = 'puppet',
  Optional[String] $enc_envname  = undef,
  Boolean $r10k_crontab_setup = false,
  Boolean $manage_webserver_conf = false,
) {
  class { 'puppet::profile::server':
    sameca                => false,
    puppetdb_local        => false,
    postgres_local        => false,

    platform_name         => $platform_name,

    server                => $server,
    use_puppetdb          => $use_puppetdb,
    puppetdb_server       => $puppetdb_server,

    hosts_update          => false,

    use_common_env        => $use_common_env,
    common_envname        => $common_envname,

    enc_envname           => $enc_envname,

    ca_server             => $ca_server,

    r10k_crontab_setup    => $r10k_crontab_setup,
    manage_webserver_conf => $manage_webserver_conf,
  }
  contain puppet::profile::server
}