Puppet Class: puppet_cd::params

Summary

Class manages parameters for the puppet_cd module.

Overview

puppet_cd::params.pp Module name: puppet_cd Author: Arne Teuke (arne_teuke@confdroid) settings are applied. any other fqdn # will be considered a puppet agent.

Parameters:

  • pt_manage_fw (Boolean) (defaults to: true)

    whether to manage firewall settings

  • pt_pm_fqdn (String) (defaults to: 'puppetmaster.example.net')

    the fqdn for the puppetmaster and master

  • pt_db_fqdn (String) (defaults to: 'puppetdb.example.net')

    the fqdn for the puppetdb host.

  • pt_package_url (String) (defaults to: 'https://yum.puppet.com/puppet8-release-el-9.noarch.rpm')

    the url for fetching the repo rpm

  • pt_pkg_ensure (String) (defaults to: 'present')

    valid: “present”, “latest”, “v1.2.3”

  • pt_agent_pkg (String) (defaults to: 'puppet-agent')

    the packages for agents to install

  • pt_server_pkg (String) (defaults to: 'puppetserver')

    the server packages to install

  • pt_db_pkg (Array) (defaults to: ['puppetdb','puppetdb-termini'])

    the packages for puppetdb

  • pt_no_ssl_port (String) (defaults to: '8080')

    non-ssl port number for puppetdb

  • pt_ssl_port (String) (defaults to: '8081')

    ssl port for puppetdb

  • pt_use_ssl_only (Boolean) (defaults to: true)

    whether to use ssl only.

  • pt_manage_user (Boolean) (defaults to: true)

    whether to manage the puppet user

  • pt_user (String) (defaults to: 'puppet')

    the puppet user

  • pt_user_comment (String) (defaults to: 'puppetserver daemon')

    the user comment

  • pt_user_home (String) (defaults to: '/opt/puppetlabs/server/data/puppetserver')

    the user home

  • pt_user_shell (String) (defaults to: '/sbin/nologin')

    the user shell

  • pt_manage_db_user (Boolean) (defaults to: true)

    whether to manage the user for puppetdb

  • pt_db_user (String) (defaults to: 'puppetdb')

    the puppetdb user

  • pt_db_user_comment (String) (defaults to: 'PuppetDB daemon')

    the user comment for puppetdb user

  • pt_db_user_home (String) (defaults to: '/opt/puppetlabs/server/data/puppetdb')

    the user home for the puppetdb user

  • pt_db_user_shell (String) (defaults to: '/sbin/nologin')

    the shell for the puppetdb user

  • pt_use_puppetdb (Boolean) (defaults to: false)

    whether to use puppetdb on host



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

class puppet_cd::params (

  Boolean $pt_manage_fw       = true,
  String $pt_pm_fqdn          = 'puppetmaster.example.net',
  String $pt_db_fqdn          = 'puppetdb.example.net',

  # installation
  String $pt_package_url      = 'https://yum.puppet.com/puppet8-release-el-9.noarch.rpm',
  String $pt_pkg_ensure       = 'present',
  String $pt_agent_pkg        = 'puppet-agent',
  String $pt_server_pkg       = 'puppetserver',
  Array $pt_db_pkg            = ['puppetdb','puppetdb-termini'],
  # puppetdb
  Boolean $pt_use_puppetdb    = false,
  String $pt_no_ssl_port      = '8080',
  String $pt_ssl_port         = '8081',
  Boolean $pt_use_ssl_only    = true,
  # user settings
  ## puppet user
  Boolean $pt_manage_user     = true,
  String $pt_user             = 'puppet',
  String $pt_user_comment     = 'puppetserver daemon',
  String $pt_user_home        = '/opt/puppetlabs/server/data/puppetserver',
  String $pt_user_shell       = '/sbin/nologin',
  ## puppetdb user
  Boolean $pt_manage_db_user  = true,
  String $pt_db_user          = 'puppetdb',
  String $pt_db_user_comment  = 'PuppetDB daemon',
  String $pt_db_user_home     = '/opt/puppetlabs/server/data/puppetdb',
  String $pt_db_user_shell    = '/sbin/nologin',

) {
  $fqdn                       = $facts['networking']['fqdn']

# directories
  $pt_main_dir                = '/etc/puppetlabs'
  $pt_puppetdir               = "${pt_main_dir}/puppet"
  $pt_code_dir                = "${pt_main_dir}/code"
  $pt_environmentspath        = "${pt_code_dir}/environments"
  $pt_ssldir                  = "${pt_puppetdir}/ssl"
  $pt_privatekeydir           = "${pt_ssldir}/private_keys"
  $pt_rundir                  = '/var/run/puppetlabs'
  $pt_rundir_master           = '/var/run/puppetlabs/puppetserver'
  $pt_vardir                  = '/opt/puppetlabs/puppet/cache'
  $pt_vardir_master           = '/opt/puppetlabs/server/data/puppetserver'

# service
  $pt_server_service          = 'puppetserver'
  $pt_agent_service           = 'puppet'
  $pt_db_service              = 'puppetdb'

#
  # includes must be last
  include puppet_cd::main::config
}