Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fail on unknown dependencies

  • Loading branch information...
commit 7cbfaf3ea92d9eec24d3d0232f27535d6bce7170 1 parent e24d663
@jbarreneche jbarreneche authored
Showing with 8 additions and 4 deletions.
  1. +4 −2 rvm/manifests/init.pp
  2. +4 −2 rvm/manifests/passenger/apache.pp
View
6 rvm/manifests/init.pp
@@ -9,7 +9,9 @@
'ubuntu', 'debian': {
$dependencies_names = ["build-essential", "curl", "git-core"]
}
- default: { $dependencies_names = "Unknwonw dependencies"}
+ default: {
+ fail "Unknwonw RVM dependencies for ${::operatingsystem}"
+ }
}
package {"rvm_dependencies":
@@ -36,7 +38,7 @@
user => 'root',
unless => 'which rvm',
command => "curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable",
- require => Class['rvm::dependencies'],
+ require => Class['rvm::dependencies'],
}
Class["rvm"] -> Package<| provider == rvm |>
View
6 rvm/manifests/passenger/apache.pp
@@ -2,14 +2,16 @@
$ruby
) {
- case $operatingsystem {
+ case $::operatingsystem {
'centos', 'redhat', 'fedora': {
$modules_path = '/etc/httpd/modules'
}
'ubuntu', 'debian': {
$modules_path = '/etc/apache2/mods-enabled'
}
- default: { $dependencies_names = "Unknwonw dependencies"}
+ default: {
+ fail "Unknown RVM dependencies for ${::operatingsystem}"
+ }
}
package {"${ruby}@global:passenger":
Please sign in to comment.
Something went wrong with that request. Please try again.