]> gitweb.fluxo.info Git - puppet-certbot.git/commitdiff
Adds non-interactive flag
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Nov 2016 13:37:54 +0000 (11:37 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Nov 2016 13:37:54 +0000 (11:37 -0200)
manifests/init.pp
manifests/manage.pp

index d8b6ccd29591381dcb35b5897348d959b01c3c2a..bd75c519b09b9f6405f4d09ad06327772ecd4e19 100644 (file)
@@ -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",
index e09621aedef0a3b0ce442daa9a8a56292d994aa2..7a3613c1f483e62249a7da792cdc541a9c188027 100644 (file)
@@ -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}"],
   }