From d962ce2c96e801578eaecd4ceb28b780284a3d69 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 16 Nov 2016 11:37:54 -0200 Subject: Adds non-interactive flag --- manifests/init.pp | 2 +- manifests/manage.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d8b6ccd..bd75c51 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -37,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 => "${script_base}/${tool} renew --standalone --quiet ${real_pre_hook} ${real_post_hook}", + command => "${script_base}/${tool} renew --standalone --quiet -n ${real_pre_hook} ${real_post_hook}", user => 'root', hour => [ 5, 23 ], minute => "28", diff --git a/manifests/manage.pp b/manifests/manage.pp index e09621a..7a3613c 100644 --- a/manifests/manage.pp +++ b/manifests/manage.pp @@ -27,7 +27,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 --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 --webroot -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}"], } -- cgit v1.2.3