]> gitweb.fluxo.info Git - puppet-certbot.git/commitdiff
Fixes basedir on certonly command
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 17 Jun 2016 12:28:51 +0000 (09:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 17 Jun 2016 12:28:51 +0000 (09:28 -0300)
manifests/manage.pp

index 6d694d9a49712233d12327acb8b7155c8e3efbec..ebcbbad8347e6f496e754ba01ddfff887be8192f 100644 (file)
@@ -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}"],
   }