summaryrefslogtreecommitdiff
path: root/manifests/vhost/passenger.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-03-31 23:17:07 +0200
committermh <mh@immerda.ch>2011-03-31 23:17:07 +0200
commitdb4dec6a9ab9205d5a76e76ac1d6244b33733c99 (patch)
tree134bda8b457c4686e4d0fbf2ec13bfce5b41573e /manifests/vhost/passenger.pp
parent71f5c60d92493cc019b741a994009c51368c3fbd (diff)
improving passenger support
Diffstat (limited to 'manifests/vhost/passenger.pp')
-rw-r--r--manifests/vhost/passenger.pp18
1 files changed, 13 insertions, 5 deletions
diff --git a/manifests/vhost/passenger.pp b/manifests/vhost/passenger.pp
index 304e89a..7fd82d2 100644
--- a/manifests/vhost/passenger.pp
+++ b/manifests/vhost/passenger.pp
@@ -41,10 +41,15 @@ define apache::vhost::passenger(
$vhost_source = 'absent',
$vhost_destination = 'absent',
$htpasswd_file = 'absent',
- $htpasswd_path = 'absent'
+ $htpasswd_path = 'absent',
+ $passenger_ree = false
){
- include ::passenger
+ if $passenger_ree {
+ include ::passenger::ree::apache
+ } else {
+ include ::passenger::apache
+ }
if $manage_webdir {
# create webdir
@@ -53,10 +58,10 @@ define apache::vhost::passenger(
path => $path,
owner => $owner,
group => $group,
- run_mode => $run_mode,
+ run_mode => 'normal',
manage_docroot => $manage_docroot,
documentroot_owner => $documentroot_owner,
- documentroot_group => $documentroot_group,
+ documentroot_group => $run_gid,
documentroot_mode => $documentroot_mode,
}
}
@@ -64,9 +69,12 @@ define apache::vhost::passenger(
# create vhost configuration file
::apache::vhost{$name:
ensure => $ensure,
- path => $path,
+ path => "${path}/www/public",
+ path_is_webdir => true,
template_mode => $template_mode,
+ template_partial => 'apache/vhosts/passenger/partial.erb',
logmode => $logmode,
+ logpath => "${path}/logs",
vhost_mode => $vhost_mode,
vhost_source => $vhost_source,
vhost_destination => $vhost_destination,