summaryrefslogtreecommitdiff
path: root/manifests/manage.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/manage.pp')
-rw-r--r--manifests/manage.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/manage.pp b/manifests/manage.pp
index 7a3613c..77cc244 100644
--- a/manifests/manage.pp
+++ b/manifests/manage.pp
@@ -2,6 +2,7 @@ define certbot::manage(
$pre_hook = '',
$aliases = "www.${name}",
$ensure = present,
+ $plugin = 'standalone',
$email = hiera('certbot::manage::email'),
$size = hiera('certbot::manage::size', '4096'),
){
@@ -27,7 +28,7 @@ define certbot::manage(
# 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}"],
}