aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitweb.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/gitweb.pp')
-rw-r--r--manifests/gitweb.pp17
1 files changed, 6 insertions, 11 deletions
diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp
index 045787d..1305390 100644
--- a/manifests/gitweb.pp
+++ b/manifests/gitweb.pp
@@ -1,19 +1,14 @@
# This class handles a gitweb installation.
-class gitweb inherits git-manager {
+class gitweb(
+ $protocol = hiera('git::web::protocol', 'git'),
+ $hosting_domain = hiera('git::web::hosting_domain', $::domain)
+ $implementation = hiera('git::daemon::implementation', 'gitolite')
+) {
+
# the needed packages
package { gitweb: ensure => installed }
- $hosting_domain = $base_domain ? {
- '' => $domain,
- default => $base_domain,
- }
-
- $base_url_protocol = $gitweb_protocol ? {
- '' => 'git',
- default => $gitweb_protocol,
- }
-
# gitweb config file
file { "/etc/gitweb.conf":
owner => "root",