summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-30 18:14:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-30 18:14:42 -0300
commitca6f53305ea12ecd177669a43fa80c0cd1941982 (patch)
tree48c751175d4be90bd1313ebdd8b6d0de00fa54af /manifests/init.pp
parentd962ce2c96e801578eaecd4ceb28b780284a3d69 (diff)
downloadpuppet-certbot-ca6f53305ea12ecd177669a43fa80c0cd1941982.tar.gz
puppet-certbot-ca6f53305ea12ecd177669a43fa80c0cd1941982.tar.bz2
Support for plugins other than standalone
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index bd75c51..bfd7210 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -4,6 +4,7 @@ class certbot(
$owner = 'www-data',
$pre_hook = '',
$post_hook = '',
+ $plugin = 'standalone',
) {
$tool = $::lsbdistcodename ? {
@@ -35,9 +36,9 @@ class certbot(
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",