summaryrefslogtreecommitdiff
path: root/manifests/web/repo/lighttpd.pp
blob: d8fe8f093bf52f3dba02bac0cd1bfe8a6ef047f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
define git::web::repo::lighttpd(
    $gitweb_url,
    $projectroot,
    $projects_list,
    $gitweb_config
){
    include git::web::lighttpd
    file{"/etc/lighttpd/gitweb.d/${name}.conf":
        content => template("git/web/lighttpd"),
        notify => Service['lighttpd'],
        owner => root, group => 0, mode => 0644;
    }
    line{"add_include_of_gitwebrepo_${name}":
        line => "include \"gitweb.d/${name}.conf\"",
        file => "/etc/lighttpd/lighttpd-gitweb.conf",
        require => File['/etc/lighttpd/lighttpd-gitweb.conf'],
        notify => Service['lighttpd'],
    }
}