]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Using $base_domain instead of $hosting_domain
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Jan 2010 01:09:27 +0000 (23:09 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Jan 2010 01:09:27 +0000 (23:09 -0200)
manifests/init.pp

index 9235a4357d3614db63e872159ea85458f8e3062f..a3b018b1e93cd9fb386b995cbb6e023c6421f2d1 100644 (file)
@@ -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,