blt04 / puppet-rvm

A puppet module for installing and using RVM (Ruby Version Manager)
Other
242 stars 280 forks source link

Could not find command '/usr/bin/curl' #107

Open mimmovele opened 10 years ago

mimmovele commented 10 years ago

I've this manifest file:

Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}

include rvm

and I get this error:

vagrant@fullstack:~/.puppet$ sudo puppet apply --verbose /etc/puppet/manifests/site.pp --modulepath=/home/vagrant/.puppet/modules
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_installed.rb
Info: Loading facts in /home/vagrant/.puppet/modules/concat/lib/facter/concat_basedir.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for fullstack.lan in environment production in 0.29 seconds
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_installed.rb
Info: Loading facts in /home/vagrant/.puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Applying configuration version '1390941992'
Error: Could not find command '/usr/bin/curl'
Error: /Stage[main]/Rvm::System/Exec[system-rvm]/returns: change from notrun to 0 failed: Could not find command '/usr/bin/curl'

Than I try this:

Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}

stage {'req-install': before => Stage['rvm-install']}
class requirements {
    package { 'curl':
                 ensure => present 
        }
}

class doinstall {
  class { requirements:, stage => "req-install" }
}
include doinstall
include rvm 

and I get this error:

vagrant@fullstack:~/.puppet$ sudo puppet apply --verbose /etc/puppet/manifests/site.pp --modulepath=/home/vagrant/.puppet/modules
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /home/vagrant/.puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_version.rb
Info: Loading facts in /home/vagrant/.puppet/modules/rvm/lib/facter/rvm_installed.rb
Info: Loading facts in /home/vagrant/.puppet/modules/concat/lib/facter/concat_basedir.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for fullstack.lan in environment production in 0.63 seconds
Error: Could not find dependent Stage[rvm-install] for Stage[req-install] at /etc/puppet/manifests/site.pp:4

Running Puppet v3.4.2 on Debian 7.1. Puppet module rvm-puppet installed via:

puppet module install maestrodev/rvm

Any help would be greatly appreciated :)

mimmovele commented 10 years ago

Think it's worth noting that after I've manually installed curl the first manifest worked out.

Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}

include rvm
xhawk commented 9 years ago

I'm also having issues with installing a package on CentOS 6 with package. I'm trying to install unzip, but when I try to use that it fails with error:

Error: Could not find command '/usr/bin/unzip'
Error: /Stage[main]/Akka/Exec[/usr/bin/unzip /tmp/akka_2.10-2.3.8.zip]/returns: change from notrun to 0 failed: Could not find command '/usr/bin/unzip'