From: Silvio Rhatto Date: Thu, 31 May 2018 11:58:25 +0000 (-0300) Subject: Ensure some variables are always defined X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=10823a7cd169ba73267c20c293154793ec05c532;p=puppet-certbot.git Ensure some variables are always defined --- diff --git a/manifests/init.pp b/manifests/init.pp index da579ba..eef61bf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -17,18 +17,30 @@ class certbot( if $pre_hook != '' { $real_pre_hook = "--pre-hook \"${pre_hook}\"" } + else { + $real_pre_hook = '' + } if $post_hook != '' { $real_post_hook = "--post-hook \"${post_hook}\"" } + else { + $real_post_hook = '' + } if $pre_command != '' { $real_pre_command = "${pre_command} &&" } + else { + $real_pre_command = '' + } if $post_command != '' { $real_post_command = "&& ${post_command}" } + else { + $real_post_command = '' + } # Certbot support file { $basedir: