Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from justinclayton/master

new parameter passenger_ruby
  • Loading branch information...
commit a4884c02f64c3ecffa67b690299dee7aef008ea2 2 parents 087d013 + a7c58bb
@ryanycoleman ryanycoleman authored
View
2  manifests/init.pp
@@ -26,6 +26,7 @@
#
# class { 'passenger':
# passenger_version => '3.0.9',
+# passenger_ruby => '/usr/bin/ruby'
# gem_path => '/var/lib/gems/1.8/gems',
# gem_binary_path => '/var/lib/gems/1.8/bin',
# mod_passenger_location => '/var/lib/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so',
@@ -40,6 +41,7 @@
#
class passenger (
$passenger_version = $passenger::params::passenger_version,
+ $passenger_ruby = $passenger::params::passenger_ruby,
$gem_path = $passenger::params::gem_path,
$gem_binary_path = $passenger::params::gem_binary_path,
$mod_passenger_location = $passenger::params::mod_passenger_location,
View
1  manifests/params.pp
@@ -12,6 +12,7 @@
#
class passenger::params {
$passenger_version = '3.0.9'
+ $passenger_ruby = '/usr/bin/ruby'
$passenger_provider = 'gem'
case $::osfamily {
View
4 templates/passenger-conf.erb
@@ -1,6 +1,6 @@
LoadModule passenger_module <%= gem_path %>/passenger-<%= passenger_version %>/ext/apache2/mod_passenger.so
PassengerRoot <%= gem_path %>/passenger-<%= passenger_version %>
-PassengerRuby /usr/bin/ruby
+PassengerRuby <%= passenger_ruby %>
# you probably want to tune these settings
PassengerHighPerformance on
@@ -8,4 +8,4 @@ PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500
# PassengerMaxRequests 1000
PassengerStatThrottleRate 120
-RailsAutoDetect On
+RailsAutoDetect On
Please sign in to comment.
Something went wrong with that request. Please try again.