From 10823a7cd169ba73267c20c293154793ec05c532 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 31 May 2018 08:58:25 -0300 Subject: Ensure some variables are always defined --- manifests/init.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: -- cgit v1.2.3