diff options
author | mh <mh@immerda.ch> | 2010-05-24 20:48:07 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-05-24 20:48:07 +0200 |
commit | dae75da745ffbba2cfab1b7f60f686c019c55be5 (patch) | |
tree | 0377a5e7eff31fcfdeb020a4f176461a2e1b784d /manifests/web/lighttpd.pp | |
parent | 33e4b7be056c3e0b25c8864f4a56082817c38158 (diff) |
bring lighttpd config in line with lighttpd default
Diffstat (limited to 'manifests/web/lighttpd.pp')
-rw-r--r-- | manifests/web/lighttpd.pp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/manifests/web/lighttpd.pp b/manifests/web/lighttpd.pp index a169dc9..7c233fa 100644 --- a/manifests/web/lighttpd.pp +++ b/manifests/web/lighttpd.pp @@ -1,24 +1,10 @@ class git::web::lighttpd { include ::lighttpd - include lighttpd::base::git::web - file{'/etc/lighttpd/lighttpd-gitweb.conf': - ensure => present, + file{'/etc/lighttpd/conf.d/lighttpd-gitweb.conf': + content => 'global { server.modules += ("mod_rewrite", "mod_redirect", "mod_alias", "mod_setenv", "mod_cgi" ) }', 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/modules/site-git/web/${fqdn}/lighttpd.conf", - "puppet://$server/modules/site-git/web/lighttpd.conf", - "puppet://$server/modules/git/web/lighttpd.conf" ], - } } |