diff options
author | Adrien Thebo <adrien@puppetlabs.com> | 2012-03-18 22:14:42 -0700 |
---|---|---|
committer | Adrien Thebo <adrien@puppetlabs.com> | 2012-03-18 22:14:42 -0700 |
commit | 4d392ec3685ec0a4b9778834051c65e57f6a19ce (patch) | |
tree | b344f31661bd753954cc296d2705d51b3fb584c6 /manifests/init.pp | |
parent | 310948615959c1612da863935976f7d1106c96ec (diff) |
Better data handling in gitweb
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 19 |
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", } } |