Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Passenger support #112

Merged
merged 4 commits into from

3 participants

@antaflos

This adds support for the Phusion Passenger module. It requires a native operating system package mod_passenger in RHEL/Centos/Fedora and libapache2-mod-passenger in Debian/Ubuntu, for example as provided by https://www.phusionpassenger.com/native_packages

manifests/mod/passenger.pp
@@ -0,0 +1,15 @@
+class apache::mod::passenger {
+ include 'apache'
+ include 'apache::params'
+
+ package { 'mod_passenger_package':
+ ensure => installed,
+ name => $apache::params::mod_passenger_package,
+ require => Package['httpd'],
+ }
+
+ a2mod { 'passenger':
@branan Owner
branan added a note

This should notify => Service['httpd'] to ensure this mod is available before the service restarts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@hunner hunner merged commit 94ebca3 into puppetlabs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +5 −0 manifests/mod/passenger.pp
  2. +4 −0 manifests/params.pp
View
5 manifests/mod/passenger.pp
@@ -0,0 +1,5 @@
+class apache::mod::passenger {
+ include 'apache'
+
+ apache::mod { 'passenger': }
+}
View
4 manifests/params.pp
@@ -36,6 +36,7 @@
$group = 'apache'
$apache_name = 'httpd'
$php_package = 'php'
+ $mod_passenger_package = 'mod_passenger'
$mod_python_package = 'mod_python'
$mod_wsgi_package = 'mod_wsgi'
$mod_auth_kerb_package = 'mod_auth_kerb'
@@ -49,6 +50,7 @@
$mod_packages = {
'dev' => 'httpd-devel',
'fcgid' => 'mod_fcgid',
+ 'passenger' => 'mod_passenger',
'perl' => 'mod_perl',
'php5' => 'php',
'proxy_html' => 'mod_proxy_html',
@@ -68,6 +70,7 @@
$group = 'www-data'
$apache_name = 'apache2'
$php_package = 'libapache2-mod-php5'
+ $mod_passenger_package = 'libapache2-mod-passenger'
$mod_python_package = 'libapache2-mod-python'
$mod_wsgi_package = 'libapache2-mod-wsgi'
$mod_auth_kerb_package = 'libapache2-mod-auth-kerb'
@@ -77,6 +80,7 @@
$mod_packages = {
'dev' => ['libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev'],
'fcgid' => 'libapache2-mod-fcgid',
+ 'passenger' => 'libapache2-mod-passenger',
'perl' => 'libapache2-mod-perl2',
'php5' => 'libapache2-mod-php5',
'proxy_html' => 'libapache2-mod-proxy-html',
Something went wrong with that request. Please try again.