blob: 4b4b56805f617be63ee65c14c5905e32d5f49b13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class profiles::letsencrypt (
String $certname,
String $nginx_plugin,
Array[String] $domains,
) {
ensure_packages ([$nginx_plugin])
include ::letsencrypt
letsencrypt::certonly { $certname:
ensure => present,
domains => $domains,
manage_cron => true,
plugin => 'nginx',
additional_args => [ '--quiet', ],
# pre_hook_commands => [ 'systemctl stop nginx.service', ],
post_hook_commands => [ 'systemctl restart nginx.service', ],
}
}
|