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

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

  case $hosting_domain {
    '': { $hosting_domain = $domain }
  }

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