summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index edd84a8..cdd4d6e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -92,9 +92,8 @@ class apache {
'': { $apache_error_dest = "${apache_error_folder}/index.html" }
}
- $use_domain = $apache_use_domain ? {
- '' => $domain,
- default => $apache_use_domain,
+ case $apache_use_domain {
+ '' { $apache_use_domain = $domain }
}
define site($ensure = present, $docroot = false, $redirect = false,