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

index 4b96b28555e10221837d1d9a6bb8c9992ef390b8..9f3343c202a4aa80d468a482a196a466673efe3d 100644 (file)
@@ -4,8 +4,9 @@ class gitweb inherits gitosis {
   # the needed packages
   package { gitweb: ensure => installed }
 
-  case $hosting_domain {
-    '': { $hosting_domain = $domain }
+  $hosting_domain = $base_domain ? {
+    ''      => $domain,
+    default => $base_domain,
   }
 
   # gitweb config file