summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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],
}
}