summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp19
1 files changed, 11 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 801e3e5..1d7fd82 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -9,9 +9,7 @@
# - gitweb::settings
# Sample Usage:
# include gitweb
-class gitweb {
-
- include gitweb::settings
+class gitweb($site_alias, $doc_root, $project_root, $projects_list) {
package { "gitweb":
ensure => present,
@@ -26,18 +24,23 @@ class gitweb {
require => Package["gitweb"],
}
- A2mod <| title == "rewrite" |>
+ file { $doc_root:
+ ensure => directory,
+ owner => 'git', # XXX,
+ group => 'git', # XXX,
+ source => 'puppet:///modules/gitweb/html',
+ }
- apache::vhost::redirect { "${gitweb::settings::site_alias}":
+ apache::vhost::redirect { $site_alias:
port => "80",
- dest => "https://${gitweb::settings::site_alias}",
+ dest => "https://${site_alias}",
}
- apache::vhost { "${gitweb::settings::site_alias}_ssl":
+ apache::vhost { "${site_alias}_ssl":
priority => "10",
port => "443",
ssl => true,
- docroot => "/var/www/git",
+ docroot => $doc_root,
template => "gitweb/apache-gitweb.conf.erb",
}
}