]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Jan 2010 01:24:21 +0000 (23:24 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Jan 2010 01:24:21 +0000 (23:24 -0200)
manifests/init.pp

index a3b018b1e93cd9fb386b995cbb6e023c6421f2d1..8505d7ca6f6492281dc0ae86553012abf3dbeed0 100644 (file)
@@ -92,11 +92,6 @@ class apache {
     '': { $apache_error_dest = "${apache_error_folder}/index.html" }
   }
 
-  $hosting_domain = $base_domain ? {
-    ''      => $domain,
-    default => $base_domain,
-  }
-
   define site($ensure = present, $docroot = false, $redirect = false,
               $redirect_match = false, $protocol = 'http',
               $server_alias = false, $use = false, $ticket = false,
@@ -108,6 +103,11 @@ class apache {
       default => "$filename",
     }
 
+    $hosting_domain = $base_domain ? {
+      ''      => $domain,
+      default => $base_domain,
+    }
+
     case $source {
       true: {
                file { "${apache2_sites}-available/$vhost":