aboutsummaryrefslogtreecommitdiffstats
path: root/modules/viewvc/manifests/init.pp
blob: 882fe2886701739e75a6dd24ea21dbc452b0ecf6 (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
30
31
32
33
34
35
36
37
class viewvc {
    package {['viewvc',
              'python-svn',
              'python-flup']: }

    # http_expiration_time = 600
    # svn_roots = admin: svn://svn.mageia.org/svn/adm/

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

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

    local_script { 'kill_viewvc':
        content => template('viewvc/kill_viewvc.sh'),
    }

    cron { 'kill_viewvc':
        command     => '/usr/local/bin/kill_viewvc',
        hour        => '*',
        minute      => '*/5',
        user        => 'apache',
        environment => 'MAILTO=root',
    }

    apache::vhost::base { "svnweb.$::domain":
        aliases => {'/viewvc' => '/var/www/viewvc/',
                    '/'       => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'},
        content => template('viewvc/vhost.conf')
    }
}