Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix modules path for centos

  • Loading branch information...
commit ff91b6e6f6994c9dd1ed78b0109f56b7d0c2028d 1 parent 0e367bc
@jbarreneche jbarreneche authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 rvm/manifests/passenger/apache.pp
View
11 rvm/manifests/passenger/apache.pp
@@ -2,6 +2,15 @@
$ruby
) {
+ case $operatingsystem {
+ 'centos', 'redhat', 'fedora': {
+ $modules_path = '/etc/httpd/modules'
+ }
+ 'ubuntu', 'debian': {
+ $modules_path = '/etc/apache2/mods-enabled'
+ }
+ default: { $dependencies_names = "Unknwonw dependencies"}
+
package {"${ruby}@global:passenger":
provider => 'rvm_gem',
require => Package[$ruby],
@@ -17,7 +26,7 @@
}
exec {"generate apache passenger conf":
- command => "/usr/local/rvm/bin/rvm $ruby exec passenger-install-apache2-module --snippet > /etc/apache2/mods-enabled/passenger.conf",
+ command => "/usr/local/rvm/bin/rvm $ruby exec passenger-install-apache2-module --snippet > $modules_path/passenger.conf",
creates => '/etc/apache2/mods-enabled/passenger.conf',
require => Package["$ruby@global:passenger"],
}

0 comments on commit ff91b6e

Please sign in to comment.
Something went wrong with that request. Please try again.