summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-11-16 11:14:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-11-16 11:14:58 -0200
commitc48fcd99581798d9a6eae2f4bb45be99e3e9d1f7 (patch)
tree55a507c55024801d5bd3a228954abaa8e255fc4b /manifests/init.pp
parent1270e496bfd3b9f5ebd293c633c7606315fc203b (diff)
downloadpuppet-certbot-c48fcd99581798d9a6eae2f4bb45be99e3e9d1f7.tar.gz
puppet-certbot-c48fcd99581798d9a6eae2f4bb45be99e3e9d1f7.tar.bz2
Adds base_path config allowing standalone cerbot installs
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 4a31bd9..57c06fc 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,4 +1,5 @@
class certbot(
+ $base_path = '/usr/bin',
$basedir = '/var/spool/certbot',
$owner = 'www-data',
$pre_hook = '',
@@ -36,7 +37,7 @@ class certbot(
# Chosing an arbitrary minite within the hour in the hope that won't overload Let's Encrypt servers
cron { 'certbot-renew':
- command => "/usr/bin/${tool} renew --standalone --quiet ${real_pre_hook} ${real_post_hook}",
+ command => "${base_path}/${tool} renew --standalone --quiet ${real_pre_hook} ${real_post_hook}",
user => 'root',
hour => [ 5, 23 ],
minute => "28",