diff --git a/manifests/init.pp b/manifests/init.pp index 073b67e8304bbccfd4235c92992e47ff797d85d5..dac19765164687d28e852761821036d22a97c157 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -63,9 +63,16 @@ class studieinfo { } } - class { '::profiles::letsencrypt': - certname => $::fqdn, - provider => 'nginx', + ensure_packages(['python3-certbot-apache']) + + letsencrypt::certonly { $::fqdn: + domains => $::fqdn, + manage_cron => true, + cron_hour => [1, 13], + cron_minute => 56, + plugin => 'nginx', + additional_args => [ '--quiet', ], + post_hook_command => [ 'systemctl restart nginx.service', ], } class { '::nginx':