diff options
author | mh <mh@immerda.ch> | 2009-05-14 20:13:36 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-05-14 20:13:36 +0200 |
commit | 52f6c79d82018d96f1609f8c6c47e9d156d26893 (patch) | |
tree | 492cecb736e5bd6a0565cf0a88e2ff10a890d9af /manifests/web/repo | |
parent | 941ed0e7577bee4d9b04c3211ddf8c70a858cf31 (diff) |
splitted everything up in one file per class/define
Diffstat (limited to 'manifests/web/repo')
-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'], + } +} |