Project

General

Profile

Download (4.16 KB) Statistics
| Branch: | Tag: | Revision:
39bda209 Ewoud Kohl van Wijngaarden
# Default parameters
96cab9ae Ohad Levy
class puppet::params {
15e686fb Jan Vansteenkiste
836ec763 Ewoud Kohl van Wijngaarden
include foreman::params

af4efdd2 Greg Sutcliffe
# Basic config
f03b5ec6 Jan Vansteenkiste
$version = 'present'
15e686fb Jan Vansteenkiste
$user = 'puppet'
8f07c6dc Dominic Cleal
$group = 'puppet'
15e686fb Jan Vansteenkiste
$dir = '/etc/puppet'
7a9857ba Greg Sutcliffe
$port = 8140
6694290a Dominic Cleal
$listen = false
16b8a920 Gavin Williams
$pluginsync = true
$splay = false
7304901f fatmcgav
$runinterval = '1800'
45211baf fatmcgav
$runmode = 'service'
5802678d Mickaël Canévet
$cron_cmd = undef
9eea3154 Dominic Cleal
$agent_noop = false
82482d2a Michael Moll
$show_diff = false
4d1a87be Mickaël Canévet
$configtimeout = 120
cd091989 Ewoud Kohl van Wijngaarden
$ca_server = ''
2ee4059f Mickaël Canévet
$classfile = '$vardir/classes.txt'
4137dbd5 Jan Vansteenkiste
7a9857ba Greg Sutcliffe
# Need your own config templates? Specify here:
3045424e Mickaël Canévet
$main_template = 'puppet/puppet.conf.erb'
$agent_template = 'puppet/agent/puppet.conf.erb'
6694290a Dominic Cleal
$auth_template = 'puppet/auth.conf.erb'
$nsauth_template = 'puppet/namespaceauth.conf.erb'
09661d61 Ohad Levy
11e65ebd Ewoud Kohl van Wijngaarden
# Allow any to the CRL. Needed in case of puppet CA proxy
$allow_any_crl_auth = false

3045424e Mickaël Canévet
# Will this host be a puppet agent ?
$agent = true

23b7e7d6 Marek Hulan
# Custom puppetmaster
$puppetmaster = $::puppetmaster

3c158112 Greg Sutcliffe
# Will this host be a puppetmaster?
$server = false
$server_vardir = '/var/lib/puppet'
$server_ca = true
$server_reports = 'foreman'
$server_passenger = true
$server_service_fallback = true
$server_passenger_max_pool = 12
$server_httpd_service = 'httpd'
$server_external_nodes = '/etc/puppet/node.rb'
270c1a4d Greg Sutcliffe
$server_enc_api = 'v2'
$server_report_api = 'v2'
17ab2608 Ewoud Kohl van Wijngaarden
$server_ca_proxy = ''
82cb701f Mickaël Canévet
$server_certname = $::clientcert
3579308a Mickaël Canévet
$server_strict_variables = false
3c158112 Greg Sutcliffe
# Need a new master template for the server?
$server_template = 'puppet/server/puppet.conf.erb'
af4efdd2 Greg Sutcliffe
0801b81a Ewoud Kohl van Wijngaarden
# The script that is run to determine the reported manifest version. Undef
# means we determine it in server.pp
de8444ee Ivan Necas
$server_config_version = undef
3c158112 Greg Sutcliffe
# Set 'false' for static environments, or 'true' for git-based workflow
de8444ee Ivan Necas
$server_git_repo = false
cbe2b829 Guido Günther
# Git branch to puppet env mapping for the post receive hook
$server_git_branch_map = {}
0801b81a Ewoud Kohl van Wijngaarden
de8444ee Ivan Necas
# Static environments config, ignore if the git_repo or dynamic_environments is 'true'
af4efdd2 Greg Sutcliffe
# What environments do we have
de8444ee Ivan Necas
$server_environments = ['development', 'production']
# Dynamic environments config
$server_dynamic_environments = false
# Owner of the environments dir: for cases external service needs write
# access to manage it.
$server_environments_owner = $user
8bdb35b6 Ewoud Kohl van Wijngaarden
# Where we store our puppet environments
de8444ee Ivan Necas
$server_envs_dir = "${dir}/environments"
6a34f1bc sgzijl
# Where remains our manifests dir
de8444ee Ivan Necas
$server_manifest_path = "${dir}/manifests"
af4efdd2 Greg Sutcliffe
# Modules in this directory would be shared across all environments
de8444ee Ivan Necas
$server_common_modules_path = ["${server_envs_dir}/common", '/usr/share/puppet/modules']
09661d61 Ohad Levy
af4efdd2 Greg Sutcliffe
# Dynamic environments config, ignore if the git_repo is 'false'
# Path to the repository
3c158112 Greg Sutcliffe
$server_git_repo_path = "${server_vardir}/puppet.git"
af4efdd2 Greg Sutcliffe
# Override these if you need your own hooks
3c158112 Greg Sutcliffe
$server_post_hook_content = 'puppet/server/post-receive.erb'
$server_post_hook_name = 'post-receive'
09661d61 Ohad Levy
c9cd351a Greg Sutcliffe
# Do you use storeconfigs? (note: not required)
310e8878 Marek Hulan
# - undef if you don't
c9cd351a Greg Sutcliffe
# - active_record for 2.X style db
# - puppetdb for puppetdb
310e8878 Marek Hulan
$server_storeconfigs_backend = undef
c9cd351a Greg Sutcliffe
af4efdd2 Greg Sutcliffe
# Passenger config
3c158112 Greg Sutcliffe
$server_app_root = "${dir}/rack"
$server_ssl_dir = "${server_vardir}/ssl"
1c0eed2c Ohad Levy
3c158112 Greg Sutcliffe
$server_package = $::operatingsystem ? {
f03b5ec6 Jan Vansteenkiste
/(Debian|Ubuntu)/ => ['puppetmaster-common','puppetmaster'],
076d79da Ohad Levy
default => ['puppet-server'],
}
f03b5ec6 Jan Vansteenkiste
$client_package = $::operatingsystem ? {
/(Debian|Ubuntu)/ => ['puppet-common','puppet'],
default => ['puppet'],
}
15e686fb Jan Vansteenkiste
54e03426 Dominic Cleal
# Only use 'puppet cert' on versions where puppetca no longer exists
4392b56d Jan Vansteenkiste
if versioncmp($::puppetversion, '3.0') < 0 {
b1ef9e08 Dominic Cleal
$puppetca_path = '/usr/sbin'
$puppetca_bin = 'puppetca'
aeb9463f Dominic Cleal
$puppetrun_cmd = '/usr/sbin/puppetrun'
4264a4d4 Greg Sutcliffe
} else {
b1ef9e08 Dominic Cleal
$puppetca_path = '/usr/bin'
4264a4d4 Greg Sutcliffe
$puppetca_bin = 'puppet cert'
aeb9463f Dominic Cleal
$puppetrun_cmd = '/usr/bin/puppet kick'
4264a4d4 Greg Sutcliffe
}

$puppetca_cmd = "${puppetca_path}/${puppetca_bin}"
42c43e4d Lukas Zapletal
# Puppet service name
2c9a7ed8 Dominic Cleal
$service_name = 'puppet'
96cab9ae Ohad Levy
}