summaryrefslogtreecommitdiff
path: root/manifests/vhost/gitweb.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-05-19 19:05:59 +0200
committermh <mh@immerda.ch>2009-05-23 01:25:24 +0200
commitaeb00010b88251661dcf4911d1a1f5a8dc99b522 (patch)
tree878f32b34ba57f8536b7782fd7807529763c85c4 /manifests/vhost/gitweb.pp
parentf7af20fcb68444d4f14fc394e465078a05a4bee4 (diff)
added gitweb vhost
Diffstat (limited to 'manifests/vhost/gitweb.pp')
-rw-r--r--manifests/vhost/gitweb.pp40
1 files changed, 40 insertions, 0 deletions
diff --git a/manifests/vhost/gitweb.pp b/manifests/vhost/gitweb.pp
new file mode 100644
index 0000000..ee9924a
--- /dev/null
+++ b/manifests/vhost/gitweb.pp
@@ -0,0 +1,40 @@
+define apache::vhost::gitweb(
+ $ensure = present,
+ $domain = 'absent',
+ $domainalias = 'absent',
+ $server_admin = 'absent',
+ $owner = root,
+ $group = 0,
+ $documentroot_owner = apache,
+ $documentroot_group = 0,
+ $documentroot_mode = 0640,
+ $allow_override = 'None',
+ $do_includes = false,
+ $options = 'absent',
+ $additional_options = 'absent',
+ $default_charset = 'absent',
+ $ssl_mode = false,
+ $htpasswd_file = 'absent',
+ $htpasswd_path = 'absent'
+){
+ # create vhost configuration file
+ ::apache::vhost{$name:
+ ensure => $ensure,
+ path => '/var/www/git',
+ path_is_webdir => true,
+ template_mode => 'gitweb',
+ domain => $domain,
+ domainalias => $domainalias,
+ server_admin => $server_admin,
+ allow_override => $allow_override,
+ do_includes => $do_includes,
+ options => $options,
+ additional_options => $additional_options,
+ default_charset => $default_charset,
+ ssl_mode => $ssl_mode,
+ htpasswd_file => $htpasswd_file,
+ htpasswd_path => $htpasswd_path,
+ mod_security => false,
+ }
+}
+