summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:19:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:19:34 -0300
commitca36a8b44f3633b87e6fc4c6e832e40218913fc2 (patch)
treea852c9b36744d57c3601820c28b4ed764d349843
parent1d23b69b233d10dca9f2bb2a29d6082af6723fb7 (diff)
downloadpuppet-certbot-ca36a8b44f3633b87e6fc4c6e832e40218913fc2.tar.gz
puppet-certbot-ca36a8b44f3633b87e6fc4c6e832e40218913fc2.tar.bz2
Minor fixes
-rw-r--r--manifests/init.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 92cb32a..76283fe 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,7 +5,7 @@ class certbot(
$post_hook = '',
) {
- $tool = $::lsbdistcodename {
+ $tool = $::lsbdistcodename ? {
'xenial' => 'letsencrypt',
default => 'certbot',
}
@@ -27,17 +27,17 @@ class certbot(
}
package { $tool:
- ensure => present,
+ ensure => present,
require => File[$basedir],
}
cron { 'certbot-renew':
command => '"/usr/bin/${tool} renew --standalone ${real_pre_hook} ${real_post_hook}",
user => 'root',
- weekday => 1,
- hour => "05",
- minute => "30",
- ensure => present,
- require => Package[$tool],
+ weekday => 1,
+ hour => "05",
+ minute => "30",
+ ensure => present,
+ require => Package[$tool],
}
}