$owner = 'www-data',
$pre_hook = '',
$post_hook = '',
+ $plugin = 'standalone',
) {
$tool = $::lsbdistcodename ? {
require => File[$basedir],
}
- # Chosing an arbitrary minite within the hour in the hope that won't overload Let's Encrypt servers
+ # Chosing an arbitrary minute within the hour in the hope that won't overload Let's Encrypt servers
cron { 'certbot-renew':
- command => "${script_base}/${tool} renew --standalone --quiet -n ${real_pre_hook} ${real_post_hook}",
+ command => "${script_base}/${tool} renew --${plugin} --quiet -n ${real_pre_hook} ${real_post_hook}",
user => 'root',
hour => [ 5, 23 ],
minute => "28",
$pre_hook = '',
$aliases = "www.${name}",
$ensure = present,
+ $plugin = 'standalone',
$email = hiera('certbot::manage::email'),
$size = hiera('certbot::manage::size', '4096'),
){
# Make sure nginx is restarted and request a certificate
exec { "certbot-${name}":
- command => "${real_pre_hook}${certbot::script_base}/${certbot::tool} certonly -n --webroot -w ${::certbot::basedir}/${name} -d ${name} ${domains} -m ${email} --rsa-key-size ${size} --agree-tos",
+ command => "${real_pre_hook}${certbot::script_base}/${certbot::tool} certonly -n --${plugin} -w ${::certbot::basedir}/${name} -d ${name} ${domains} -m ${email} --rsa-key-size ${size} --agree-tos",
creates => "/etc/letsencrypt/archive/${name}",
require => File["${::certbot::basedir}/${name}"],
}