Skip to content

Instantly share code, notes, and snippets.

@johanek
Created March 3, 2015 10:31
Show Gist options
  • Save johanek/14f974eddc1c8a6c2d66 to your computer and use it in GitHub Desktop.
Save johanek/14f974eddc1c8a6c2d66 to your computer and use it in GitHub Desktop.
puppet passenger install from source
# # Passenger
package { 'passenger':
ensure => '4.0.8',
provider => ruby19_gem,
require => Exec['install_rubygems']
}
exec { 'passenger_install':
path => [ '/opt/ruby-1.9.3-p362/bin', '/opt/ruby-1.9.3-p362/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/bin', '/bin', '/usr/bin', '/sbin', '/usr/bin' ],
environment => 'GEM_PATH=/opt/ruby-1.9.3-p362/lib/ruby/gems/1.9.1',
command => 'passenger-install-apache2-module --auto',
creates => '/opt/ruby-1.9.3-p362/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/buildout/apache2/mod_passenger.so',
require => Package['passenger']
}
file { '/etc/httpd/conf.d/passenger.conf':
ensure => present,
source => 'puppet:///modules/shotgun/passenger-4.0.2.conf',
notify => Service['httpd']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment