puppet-rvm icon indicating copy to clipboard operation
puppet-rvm copied to clipboard

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

Open mimmovele opened this issue 11 years ago • 2 comments

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 avatar Jan 28 '14 21:01 mimmovele

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

mimmovele avatar Jan 28 '14 21:01 mimmovele

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'

xhawk avatar Jan 16 '15 10:01 xhawk