summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:28:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:28:51 -0300
commit1cca2ca13258a38330ad333e3543caf936cfbe1a (patch)
tree73d580190ad2ded7390abb32ab83b2b3c4872952 /manifests
parent45b7550cd0b749bdfe781935f2367a507231db5c (diff)
downloadpuppet-certbot-1cca2ca13258a38330ad333e3543caf936cfbe1a.tar.gz
puppet-certbot-1cca2ca13258a38330ad333e3543caf936cfbe1a.tar.bz2
Fixes basedir on certonly command
Diffstat (limited to 'manifests')
-rw-r--r--manifests/manage.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/manage.pp b/manifests/manage.pp
index 6d694d9..ebcbbad 100644
--- a/manifests/manage.pp
+++ b/manifests/manage.pp
@@ -18,7 +18,7 @@ define certbot::manage(
# Make sure nginx is restarted and request a certificate
exec { "certbot-${name}":
- command => "${real_pre_hook}/usr/bin/certbot certonly --webroot -w /var/www/certbot/${name} -d ${name} -d www.${name} -m ${email} --rsa-key-size ${size} --agree-tos",
+ command => "${real_pre_hook}/usr/bin/certbot certonly --webroot -w ${::certbot::basedir}/${name} -d ${name} -d www.${name} -m ${email} --rsa-key-size ${size} --agree-tos",
creates => "/etc/letsencrypt/archive/${name}",
require => File["${::certbot::basedir}/${name}"],
}