summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-31 08:58:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-31 08:58:25 -0300
commit10823a7cd169ba73267c20c293154793ec05c532 (patch)
tree11782934eeea7873bb01ac005572c9ff39a25c2f /manifests
parent5f24e6a9f043039050279be63311621334e7eea1 (diff)
downloadpuppet-certbot-10823a7cd169ba73267c20c293154793ec05c532.tar.gz
puppet-certbot-10823a7cd169ba73267c20c293154793ec05c532.tar.bz2
Ensure some variables are always defined
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
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: