]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Adding $gitweb_protocol parameter
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 20:35:12 +0000 (17:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 20:35:12 +0000 (17:35 -0300)
manifests/gitweb.pp
templates/gitweb.conf.erb

index 9f3343c202a4aa80d468a482a196a466673efe3d..dbf08e1dd67c6c13a62f690e710798caf003e961 100644 (file)
@@ -9,6 +9,11 @@ class gitweb inherits gitosis {
     default => $base_domain,
   }
 
+  $base_url_protocol = $gitweb_protocol ? {
+    ''      => 'git',
+    default => $gitweb_protocol,
+  }
+
   # gitweb config file
   file { "/etc/gitweb.conf":
     owner   => "root",
index 55ee7463225709dc0bc5e655fd4d2ed341273d5f..697d7a9ec3b543fc6984923313da5819bd0d480f 100644 (file)
@@ -25,4 +25,4 @@ $logo = "/git-logo.png";
 $favicon = "/git-favicon.png";
 
 # header url
-@git_base_url_list = ('git://git.<%= hosting_domain %>');
+@git_base_url_list = (<%= base_url_protocol %>'://git.<%= hosting_domain %>');