summaryrefslogtreecommitdiff
path: root/manifests/web
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-01-09 00:27:37 +0000
committermh <mh@immerda.ch>2009-01-09 00:27:37 +0000
commitd3a825d19821ff9318615ac022de89a328c41ccd (patch)
tree815bfcce3520e2677a56a53f54b63e2074fbe417 /manifests/web
parent698014f451130146aec861281747385cca5abf89 (diff)
added gitwebrepo share possibility for lighttpd
Diffstat (limited to 'manifests/web')
-rw-r--r--manifests/web/lighttpd.pp26
-rw-r--r--manifests/web/lighttpd/base.pp7
2 files changed, 33 insertions, 0 deletions
diff --git a/manifests/web/lighttpd.pp b/manifests/web/lighttpd.pp
new file mode 100644
index 0000000..5784244
--- /dev/null
+++ b/manifests/web/lighttpd.pp
@@ -0,0 +1,26 @@
+class git::web::lighttpd inherits lighttpd {
+ include git::web::lighttpd::base
+
+ 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;
+ }
+}
diff --git a/manifests/web/lighttpd/base.pp b/manifests/web/lighttpd/base.pp
new file mode 100644
index 0000000..26fd225
--- /dev/null
+++ b/manifests/web/lighttpd/base.pp
@@ -0,0 +1,7 @@
+class git::web::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/git/web/lighttpd.conf" ],
+ }
+}