aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-10-09 17:35:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-10-09 17:35:12 -0300
commit28d90f7d8812d1237d346c192844b961be16bd55 (patch)
tree8e668cf2d5285273d4ce080856f781ce9f4dfc08 /manifests
parent76b4d2a29bf10924356f39c81b4d3ab8fc54b6bd (diff)
downloadpuppet-git-28d90f7d8812d1237d346c192844b961be16bd55.tar.gz
puppet-git-28d90f7d8812d1237d346c192844b961be16bd55.tar.bz2
Adding $gitweb_protocol parameter
Diffstat (limited to 'manifests')
-rw-r--r--manifests/gitweb.pp5
1 files changed, 5 insertions, 0 deletions
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",