aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitweb.pp
blob: 1d670bec4de0e8137c56b9f3b03d93fb0e2e9aa7 (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       = lookup('git::web::protocol', undef, undef,          'git'),
  $hosting_domain = lookup('apache::site::domain', undef, undef,        $::domain),
  $implementation = lookup('git::daemon::implementation', undef, undef, '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'),
  }
}