diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2009-05-19 19:05:59 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2009-05-19 19:05:59 +0200 |
commit | 046830e261f9e18d5bfa37fd10e20945e5d1368f (patch) | |
tree | 77f82a42f3ced76469027445c8f3b52b2cf7d0a3 /manifests/vhost/gitweb.pp | |
parent | c6cd178a5752a85cab638f32d5bfc145e9eafb01 (diff) |
added gitweb vhost
Diffstat (limited to 'manifests/vhost/gitweb.pp')
-rw-r--r-- | manifests/vhost/gitweb.pp | 40 |
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, + } +} + |