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
|
# File 'modules/ncredir/manifests/init.pp', line 38
class ncredir(
Tuple[String, 1, default] $ssl_settings,
String $redirection_maps,
Hash[String, Hash[String, Any]] $acme_certificates,
String $acme_chief_cert_prefix,
Stdlib::AbsolutePath $certs_basepath = '/etc/acmecerts',
Stdlib::Port $http_port = 80,
Stdlib::Port $https_port = 443,
Integer $hsts_max_age = 106384710,
String $benthos_address = '127.0.0.1:1221',
) {
file { '/etc/nginx/conf.d/redirection_maps.conf':
content => $redirection_maps,
require => File['/etc/nginx/conf.d'],
notify => Service['nginx'],
}
file { '/etc/nginx/conf.d/ncredir_log_format.conf':
source => 'puppet:///modules/ncredir/ncredir_log_format.conf',
require => File['/etc/nginx/conf.d'],
notify => Service['nginx'],
}
nginx::site { 'ncredir':
content => template('ncredir/ncredir.nginx.conf.erb'),
}
}
|