summaryrefslogtreecommitdiff
path: root/manifests/web/lighttpd.pp
blob: bc627a5a4f3cfca206196cf69d2cbb9399fd7079 (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
class git::web::lighttpd {
    include ::lighttpd 
    include lighttpd::base::git::web

    file{'/etc/lighttpd/lighttpd-gitweb.conf':
        ensure => present,
        require => Package['lighttpd'],
        notify => Service['lighttpd'],
        owner => root, group => 0, mode => 0644;
    }

    file{'/etc/lighttpd/gitweb.d':
        ensure => directory,
        require => Package['lighttpd'],
        owner => root, group => 0, mode => 0755;
    }
}
class lighttpd::base::git::web inherits lighttpd::base {
    File['/etc/lighttpd/lighttpd.conf']{
        source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd.conf",
                    "puppet://$server/files/git/web/lighttpd.conf",
                    "puppet://$server/modules/git/web/lighttpd.conf" ],
    }
}