From ca36a8b44f3633b87e6fc4c6e832e40218913fc2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Jun 2016 09:19:34 -0300 Subject: Minor fixes --- manifests/init.pp | 14 +++++++------- 1 file 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], } } -- cgit v1.2.3