aboutsummaryrefslogtreecommitdiffstats
path: root/modules/viewvc/manifests/init.pp
blob: 50e6f891c6bc433195d6402787f30dac09ee5e85 (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
class viewvc {
    package { ['viewvc','python-svn']:
        ensure => installed
    }
    # http_expiration_time = 600
    # svn_roots = admin: svn://svn.mageia.org/svn/adm/

    file { 'viewvc.conf':
        ensure => present,
        path => '/etc/viewvc/viewvc.conf',
        content => template('viewvc/viewvc.conf'),
        notify => Service['apache'],
        require => Package['viewvc']
    }

    file { 'webapps.d/viewvc.conf':
        ensure => present,
        path => '/etc/httpd/conf/webapps.d/viewvc.conf',
        content => template('viewvc/webapp.conf'),
        notify => Service['apache'],
    }

    # need newer version of viewvc
    apache::vhost_wsgi{ "viewvc.$domain":
        wsgi_path => "/usr/share/viewvc/bin/wsgi/viewvc.wsgi",
        aliases => { "/viewvc" => "/var/www/viewvc/" }, 
    }
}