Puppet Class: puppet::profile::compiler

Inherits:
puppet::params
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: 'puppet8')
  • 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')
  • puppetdb_local (Boolean) (defaults to: false)

    This parameter controls whether PuppetDB should be installed on the same server as the Puppet Server. Setting this parameter to true enables a local installation of PuppetDB alongside the Puppet Server, facilitating a compact setup where both services run on a single machine.

  • 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

  • postgres_local (Boolean) (defaults to: false)
  • manage_database (Boolean) (defaults to: $postgres_local)
  • manage_fileserver_config (Boolean) (defaults to: true)
  • mount_points (Hash[String, Stdlib::Absolutepath]) (defaults to: {})
  • certname (Optional[String]) (defaults to: undef)
  • manage_repo (Boolean) (defaults to: true)
  • r10k_cachedir (Stdlib::Unixpath) (defaults to: $puppet::params::r10k_cachedir)


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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'manifests/profile/compiler.pp', line 33

class puppet::profile::compiler (
  Stdlib::Host $ca_server,
  Puppet::Platform $platform_name = 'puppet8',
  Stdlib::Host $server = $ca_server,
  Boolean $use_common_env = false,
  Optional[String] $common_envname = undef,
  Boolean $use_puppetdb = true,
  Boolean $puppetdb_local = false,
  Boolean $postgres_local = false,
  Boolean $manage_database = $postgres_local,
  Stdlib::Host $puppetdb_server = 'puppet',
  Optional[String] $enc_envname  = undef,
  Boolean $r10k_crontab_setup = false,
  Boolean $manage_webserver_conf = false,
  Boolean $manage_fileserver_config = true,
  Hash[String, Stdlib::Absolutepath] $mount_points = {},
  Optional[String] $certname = undef,
  Boolean $manage_repo = true,
  Stdlib::Unixpath $r10k_cachedir = $puppet::params::r10k_cachedir,
) inherits puppet::params {
  class { 'puppet::profile::server':
    sameca                   => false,
    puppetdb_local           => $puppetdb_local,
    manage_database          => $manage_database,

    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,
    r10k_cachedir            => $r10k_cachedir,

    manage_webserver_conf    => $manage_webserver_conf,

    manage_fileserver_config => $manage_fileserver_config,
    mount_points             => $mount_points,

    certname                 => $certname,
    manage_repo              => $manage_repo,
  }
  contain puppet::profile::server
}