- add haproxy backend for be_letsencrypt - manage the certbot role/profile - create define to export certificate requests
16 lines
446 B
Puppet
16 lines
446 B
Puppet
# profiles::certbot::cert
|
|
define profiles::certbot::cert (
|
|
Stdlib::Fqdn $domain,
|
|
Array $additional_args = ['--http-01-port=8888'],
|
|
Boolean $manage_cron = true,
|
|
) {
|
|
|
|
$location_environment = "${facts['country']}-${facts['region']}-${facts['environment']}"
|
|
|
|
@@letsencrypt::certonly { $domain:
|
|
additional_args => $additional_args,
|
|
manage_cron => $manage_cron,
|
|
tag => $location_environment,
|
|
}
|
|
}
|