Puppet Class: puppet_cd::params
- Inherited by:
-
puppet_cd::main::dirs
puppet_cd::main::user
puppet_cd::main::files
puppet_cd::main::config
puppet_cd::main::install
puppet_cd::r10k::install
puppet_cd::server::service
puppet_cd::firewall::iptables
- Defined in:
- manifests/params.pp
Summary
Class manages parameters for the puppet_cd module.Overview
puppet_cd::params.pp Module name: puppet_cd Author: Arne Teuke (arne_teuke@confdroid)
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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'manifests/params.pp', line 57
class puppet_cd::params (
Boolean $pt_manage_fw = true,
String $pt_pm_fqdn = 'puppetmaster.example.net',
String $pt_puppetdb_fqdn = 'puppetdb.example.net',
Boolean $pt_use_puppetdb = false,
# installation
String $pt_pkg_ensure = 'present',
String $pt_agent_pkg = 'puppet-agent',
String $pt_server_pkg = 'puppetserver',
Array $pt_r10k_pkg = ['ruby','ruby-devel','rubygems','gcc','make'],
Array $pt_r10k_webhook_pkg = ['webrick', 'r10k_gitlab_webhook'],
# user settings
## puppet user
Boolean $pt_manage_user = false,
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',
# templates
## puppet
String $pt_environment = 'production',
Boolean $pt_allow_duplicate_certs = false,
String $pt_basemodulepath = '/etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules',
String $pt_logdir = '/var/log/puppetlabs/puppet',
String $pt_pluginfactsource = 'pluginfacts',
String $pt_pluginsource = 'plugins',
String $pt_reports = 'foreman',
Boolean $pt_show_diff = false,
Boolean $pt_default_schedules = false,
String $pt_masterport = '8140',
Boolean $pt_noop = false,
Boolean $pt_pluginsync = true,
Boolean $pt_report = true,
String $pt_runinterval = '1800',
Boolean $pt_splay = false,
String $pt_splaylimit = '1800',
Boolean $pt_usecacheonfailure = true,
String $pt_autosign = '/etc/puppetlabs/puppet/autosign.conf',
Boolean $pt_ca = true,
String $pt_external_nodes = '/etc/puppetlabs/puppet/node.rb',
String $pt_logdir_master = '/var/log/puppetlabs/puppetserver',
String $pt_node_terminus = 'exec',
Boolean $pt_strict_variables = false,
Boolean $pt_storeconfigs = true,
String $pt_storeconfigs_backend = 'puppetdb',
String $pt_parser = 'current',
Boolean $pt_cert_revocation = true,
# puppetdb
String $pt_ssl_port = '8081',
# r10k
Boolean $pt_use_r10k = false,
Boolean $pt_use_r10k_webhook = false,
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
Boolean $pt_r10k_prefix = false,
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
String $pt_r10k_webhook_port = '8085',
) {
# facts
$fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
# directories
## puppet
$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'
## r10k
$pt_r10k_dir = "${pt_main_dir}/r10k"
$pt_r10k_webhook_dir = '/etc/r10k-webhook'
# files
## puppet
$pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
$pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
$pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
$pt_puppetdb_conf_erb = 'puppet_cd/puppetdb/puppetdb.conf.erb'
## r10k
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
$pt_r10k_erb = 'puppet_cd/r10k/r10k.yaml.erb'
$pt_webhook_link = 'ln -sf /usr/local/share/gems/gems/r10k_gitlab_webhook-0.1.3/bin/r10k_gitlab_webhook /usr/bin/'
$pt_webhook_service_file = '/etc/systemd/system/r10k_gitlab_webhook.service'
$pt_webhook_service_erb = 'puppet_cd/r10k/r10k_webhook_service.erb'
# service
$pt_server_service = 'puppetserver'
$pt_agent_service = 'puppet'
$pt_r10k_webhook_service = 'r10k_gitlab_webhook'
#
# includes must be last
include puppet_cd::main::config
}
|