summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Thebo <adrien@puppetlabs.com>2012-03-18 23:45:12 -0700
committerAdrien Thebo <adrien@puppetlabs.com>2012-03-18 23:45:12 -0700
commit65a90b8a15f81ad5bc66bca2947456de48240eb9 (patch)
treedbc5e4621ad17f0fad3a7f70f9af9db55ffb22de
parent18c908a7860c08d0ac4e1f034d72147d7029b7a8 (diff)
Fix permissions for gitweb installation
-rw-r--r--manifests/init.pp19
1 files changed, 12 insertions, 7 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0a73883..ae241c6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -20,15 +20,20 @@ class gitweb($site_alias, $doc_root, $project_root, $projects_list, $ssl = true)
}
file { $doc_root:
- ensure => directory,
- owner => 'git', # XXX,
- group => 'git', # XXX,
- source => 'puppet:///modules/gitweb/html',
+ ensure => directory,
+ owner => 'git', # XXX,
+ group => 'git', # XXX,
+ source => 'puppet:///modules/gitweb/html',
+ recurse => true,
}
- apache::vhost::redirect { $site_alias:
- port => "80",
- dest => "https://${site_alias}",
+ # Ensure that cgi script is executable
+ file { "${doc_root}/index.cgi":
+ ensure => file,
+ owner => 'git', # XXX,
+ group => 'git', # XXX,
+ mode => '0755',
+ source => 'puppet:///modules/gitweb/html/index.cgi',
}
apache::vhost { "${site_alias}_ssl":