Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ passenger
Overview
--------

The Passenger module allows easy configuration and management of Phusion Passenger.
The Passenger module allows easy configuration and management of Phusion Passenger.

Module Description
-------------------

The Passenger module lets you run Rails or Rack inside Apache with ease. Utilizing [Passenger](http://www.modrails.com), an application server for Ruby (Rack) and Python (WSGI) apps, the Passenger module enables quick configuration of Passenger for Apache.
The Passenger module lets you run Rails or Rack inside Apache with ease. Utilizing [Passenger](http://www.modrails.com), an application server for Ruby (Rack) and Python (WSGI) apps, the Passenger module enables quick configuration of Passenger for Apache.

Setup
-----

**What Passenger affects:**

* Apache
* installs packages on chosen nodes
* installs packages on chosen nodes
* package/service/configuration files for Passenger
### Beginning with Passenger

### Beginning with Passenger

Install and begin managing Passenger on a node by declaring the class in your node definition:

Expand All @@ -42,11 +42,11 @@ This will establish Passenger on your node with sane default values. However, yo
include_build_tools => true,
}
}

Usage
------

The `passenger` class has a set of configurable parameters that allow you to control aspects of Passenger's installation.
The `passenger` class has a set of configurable parameters that allow you to control aspects of Passenger's installation.

**Parameters within `passenger`**

Expand Down Expand Up @@ -90,6 +90,10 @@ Root directory for passenger

Allows you to customize what ruby binary is used

####`passenger_app_env`

Set the Application environment

####`passenger_version`

The Version of Passenger to be installed
Expand All @@ -101,7 +105,7 @@ Whether or not to include the `passenger::compile` class. Defaults to true.
Implementation
---------------

This module operates by compiling Ruby gems on the system being managed.
This module operates by compiling Ruby gems on the system being managed.

Limitations
------------
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
$passenger_provider = $passenger::params::passenger_provider,
$passenger_root = $passenger::params::passenger_root,
$passenger_ruby = $passenger::params::passenger_ruby,
$passenger_app_env = $passenger::params::passenger_app_env,
$passenger_version = $passenger::params::passenger_version,
$compile_passenger = $passenger::params::compile_passenger,
$include_build_tools = false,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$package_ensure = '3.0.21'
$passenger_version = '3.0.21'
$passenger_ruby = '/usr/bin/ruby'
$passenger_app_env = 'production'
$package_provider = 'gem'
$passenger_provider = 'gem'
$compile_passenger = true
Expand Down
1 change: 1 addition & 0 deletions templates/passenger-conf.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LoadModule passenger_module <%= scope.lookupvar('passenger::mod_passenger_location') %>
PassengerRoot <%= scope.lookupvar('passenger::passenger_root') %>
PassengerRuby <%= scope.lookupvar('passenger::passenger_ruby') %>
PassengerAppEnv <%= scope.lookupvar('passenger::passenger_app_env') %>

# you probably want to tune these settings
PassengerHighPerformance on
Expand Down