diff options
Diffstat (limited to 'manifests/web/repo/lighttpd.pp')
-rw-r--r-- | manifests/web/repo/lighttpd.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/web/repo/lighttpd.pp b/manifests/web/repo/lighttpd.pp new file mode 100644 index 0000000..d8fe8f0 --- /dev/null +++ b/manifests/web/repo/lighttpd.pp @@ -0,0 +1,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'], + } +} |