summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-07 23:09:27 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-07 23:09:27 -0200
commit262fa2c3910a476bd030d6b77e9395fa506c054a (patch)
tree19867a16a79153285e02b7e47c9612afd13679ae
parenta9f63debd2e2486c2c425523a6febfd0ecf70b88 (diff)
downloadpuppet-apache-262fa2c3910a476bd030d6b77e9395fa506c054a.tar.gz
puppet-apache-262fa2c3910a476bd030d6b77e9395fa506c054a.tar.bz2
Using $base_domain instead of $hosting_domain
-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,