Commit 00a00fda authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Change how certbot is handled.

parent d0bc13f1
......@@ -100,9 +100,22 @@ class datorhandbok (
require => Package['apache2'],
}
lyscert::letsencrypt { 'letsencrypt-certonly':
email => 'root@lysator.liu.se',
webserver => 'apache2',
class { '::letsencrypt':
email => 'root@lysator.liu.se',
}
ensure_packages ([
'cronic',
],
{ ensure => installed })
letsencrypt::certonly { $facts['networking']['fqdn']:
domains => [ $facts['networking']['fqdn'],
manage_cron => true,
cron_hour => [2, 14],
cron_minute => 13,
plugin => 'apache',
letsencrypt_command => 'cronic certbot',
}
file { '/etc/apache2/sites-available/datorhandbok.lysator.liu.se.conf':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment