aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cgit/manifests/init.pp
blob: 58b80edeedeea679f34d07f515990d578cb7ecbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class cgit {
    package { 'cgit': }

    file { '/etc/cgitrc':
        content => template('cgit/cgitrc'),
        notify  => Service['apache'],
        require => Package['cgit'],
    }

    apache::webapp_other { 'cgit':
        webapp_file => 'cgit/webapp.conf',
    }

    mga_common::local_script { 'cgit.filter.commit-links.sh':
        content => template('cgit/filter.commit-links.sh'),
    }

    apache::vhost::base { "gitweb.${::domain}":
        content => template('cgit/vhost.conf')
    }
}