aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitweb.pp
blob: 8d07e67b5c098b346453202755bd84925a27065f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This class handles a gitweb installation.

class gitweb inherits git-manager {
  case $git_server_implementation {
    '': { $git_server_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",
    group   => "root",
    mode    => 0644,
    ensure  => present,
    content => template('git/gitweb.conf.erb'),
  }
}