aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitweb.pp
blob: 3453169b6fe7d086c96f3b8da6bc177347fdd3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This class handles a gitweb installation.

class git::gitweb(
  $protocol       = hiera('git::web::protocol',          'git'),
  $hosting_domain = hiera('apache::site::domain',        $::domain),
  $implementation = hiera('git::daemon::implementation', 'gitolite')
) {

  # the needed packages
  package { gitweb: ensure => installed }

  # gitweb config file
  file { "/etc/gitweb.conf":
    owner   => "root",
    group   => "root",
    mode    => 0644,
    ensure  => present,
    content => template('git/gitweb.conf.erb'),
  }
}