From 28d90f7d8812d1237d346c192844b961be16bd55 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Oct 2010 17:35:12 -0300 Subject: Adding $gitweb_protocol parameter --- manifests/gitweb.pp | 5 +++++ templates/gitweb.conf.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index 9f3343c..dbf08e1 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -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", diff --git a/templates/gitweb.conf.erb b/templates/gitweb.conf.erb index 55ee746..697d7a9 100644 --- a/templates/gitweb.conf.erb +++ b/templates/gitweb.conf.erb @@ -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 %>'); -- cgit v1.2.3