Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mimmovele opened this issue Jan 28, 2014 · 2 comments
Open

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

mimmovele opened this issue Jan 28, 2014 · 2 comments

Comments

@mimmovele
Copy link

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
Copy link
Author

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
Copy link

xhawk commented Jan 16, 2015

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants