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

    file{'/etc/lighttpd/lighttpd-gitweb-defaults.conf':
        source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd-gitweb-defaults.conf",
                    "puppet://$server/files/git/web/lighttpd-gitweb-defaults.conf",
                    "puppet://$server/git/web/lighttpd-gitweb-defaults.conf" ],
        require => Package['lighttpd'],
        notify => Service['lighttpd'],
        owner => root, group => 0, mode => 0644;
    }


    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;
    }
}