]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Adding $apache_use_domain
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jan 2010 22:08:15 +0000 (20:08 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jan 2010 22:08:15 +0000 (20:08 -0200)
manifests/gitweb.pp
templates/gitweb.conf.erb

index d9d1b173f32668d33d3f9e8f524c55f2f60a4da2..81d19c95ced59bb922e3a3ae840c46a6aa0a09eb 100644 (file)
@@ -4,6 +4,10 @@ class gitweb inherits gitosis {
   # the needed packages
   package { gitweb: ensure => installed }
 
+  case $apache_use_domain {
+    '' { $apache_use_domain = $domain }
+  }
+
   # gitweb config file
   file { "/etc/gitweb.conf":
     owner   => "root",
index 436c7a36735d65734ad74567e2d0d8200437b163..d66ac5be44946de0a135fca20017801137341fe5 100644 (file)
@@ -25,4 +25,4 @@ $logo = "/git-logo.png";
 $favicon = "/git-favicon.png";
 
 # header url
-@git_base_url_list = ('git://git.<%= domain %>');
+@git_base_url_list = ('git://git.<%= apache_use_domain %>');