-
Notifications
You must be signed in to change notification settings - Fork 85
/
params.pp
54 lines (52 loc) · 2.03 KB
/
params.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
###
### params.pp: default class parameters.
###
### @members, corresponds to an existing webserver.
###
class reverse_proxy::params {
$hiera = lookup( { 'name' => 'reverse_proxy', 'default_value' => false } )
if $hiera {
$run = true
$version = 'latest'
$type = $hiera['type']
$vhost = $hiera['vhost']
$host_port = $hiera['host_port']
$listen_port = $hiera['listen_port']
$members = $hiera['members']
$proxy = $hiera['proxy']
$self_signed = $hiera['certificate']['self_signed']
$cert_path = $hiera['certificate']['cert_path']
$pkey_path = $hiera['certificate']['pkey_path']
$cert_country = $hiera['certificate']['props']['country']
$cert_org = $hiera['certificate']['props']['org']
$cert_state = $hiera['certificate']['props']['state']
$cert_locality = $hiera['certificate']['props']['locality']
$cert_unit = $hiera['certificate']['props']['unit']
$cert_bit = $hiera['certificate']['props']['bit']
$cert_days = $hiera['certificate']['props']['days']
$access_log = $hiera['access_log']
$error_log = $hiera['error_log']
}
else {
$run = true
$version = $nginx_version
$type = ''
$vhost = ''
$host_port = ''
$listen_port = ''
$members = ['']
$proxy = 'http://localhost'
$self_signed = true
$cert_path = '/etc/puppetlabs/puppet/ssl/certs'
$pkey_path = '/etc/puppetlabs/puppet/ssl/private_keys'
$cert_country = ''
$cert_org = ''
$cert_state = ''
$cert_locality = ''
$cert_unit = ''
$cert_bit = 4096
$cert_days = 365
$access_log = '/var/log/nginx/puppet_access.log'
$error_log = '/var/log/nginx/puppet_error.log'
}
}