aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-25 14:42:52 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-25 14:42:52 -0200
commit351961dfdd6df0dc889b3ebddfad1981aa8a4a5c (patch)
tree9d5fa4c1e76365ceeb7c30bf15f2b05495631ad3 /manifests
parent5c1450e7e821a540dd02ea1a5bc872770f238636 (diff)
downloadpuppet-nodo-351961dfdd6df0dc889b3ebddfad1981aa8a4a5c.tar.gz
puppet-nodo-351961dfdd6df0dc889b3ebddfad1981aa8a4a5c.tar.bz2
Syntax fix
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}":