aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/domain.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/subsystems/domain.pp b/manifests/subsystems/domain.pp
index d076052..436221a 100644
--- a/manifests/subsystems/domain.pp
+++ b/manifests/subsystems/domain.pp
@@ -17,9 +17,13 @@ class domain {
$cert_check = "/usr/local/bin/domain-check -a -q -x ${interval} -e ${email}"
- $command = $file ? {
- true => "$cert_check -f ${file}",
- false,default => "$cert_check -d ${name}",
+ case $file {
+ true: {
+ $command = "$cert_check -f ${file}",
+ }
+ false, default: {
+ $command = "$cert_check -d ${name}",
+ }
}
cron { "domain-check-${name}":