summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9235a43..a3b018b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -92,8 +92,9 @@ class apache {
'': { $apache_error_dest = "${apache_error_folder}/index.html" }
}
- case $hosting_domain {
- '': { $hosting_domain = $domain }
+ $hosting_domain = $base_domain ? {
+ '' => $domain,
+ default => $base_domain,
}
define site($ensure = present, $docroot = false, $redirect = false,