apache: Added apache::mod::passenger
This commit is contained in:
parent
9ac439f1c9
commit
e8251bae66
1 changed files with 40 additions and 0 deletions
|
@ -503,6 +503,46 @@ class apache::mod::ldap {
|
|||
}
|
||||
|
||||
|
||||
# Install mod_passenger.
|
||||
#
|
||||
class apache::mod::passenger {
|
||||
|
||||
package { "mod_passenger":
|
||||
name => $::operatingsystem ? {
|
||||
debian => "libapache2-mod-passenger",
|
||||
ubuntu => "libapache2-mod-passenger",
|
||||
default => "mod_passenger",
|
||||
},
|
||||
ensure => installed,
|
||||
require => Package["httpd"],
|
||||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
"debian","ubuntu": {
|
||||
apache::debian::a2enmod { "passenger":
|
||||
require => Package ["libapache2-mod-passenger"],
|
||||
}
|
||||
}
|
||||
"centos","redhat","fedora": {
|
||||
apache::configfile { "passenger.conf":
|
||||
require => Package["mod_passenger"],
|
||||
}
|
||||
}
|
||||
default: {
|
||||
fail("Apache module not supported in ${::operatingsystem}.")
|
||||
}
|
||||
}
|
||||
|
||||
file { "/var/lib/passenger":
|
||||
ensure => directory,
|
||||
mode => "0755",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Install mod_perl.
|
||||
#
|
||||
class apache::mod::perl {
|
||||
|
|
Loading…
Add table
Reference in a new issue