chef recipe error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rvm is installed into /usr/local/rvm | |
# all users added to group rvm can manage rubies | |
package "curl" | |
package "libreadline5-dev" # for ruby ree | |
template "/etc/gemrc" do | |
source "gemrc.erb" | |
end | |
script "Install rvm" do | |
interpreter "bash" | |
user "root" | |
cwd "/tmp" | |
code <<-EOH | |
curl -L http://bit.ly/rvm-install-system-wide > rvm-install-system-wide | |
bash < ./rvm-install-system-wide | |
rm rvm-install-system-wide | |
EOH | |
end | |
execute "Adding rvm source to /etc/source" do | |
command %Q{echo "source /usr/local/lib/rvm" >> /etc/profile} | |
user "root" | |
end | |
execute "Load rvm source" do | |
command "source /usr/local/lib/rvm" | |
user "root" | |
end | |
execute "Install Ruby 1.9.2" do | |
command "rvm install 1.9.2-rc2" | |
user "root" | |
end | |
execute "Make sure permissions are set correctly" do | |
command "chmod -R g+w /usr/local/rvm" | |
user "root" | |
end | |
execute "Cleanup rvm tmp files" do | |
command "rvm cleanup all" | |
user "root" | |
end | |
execute "Set default Ruby" do | |
command "rvm use 1.9.2-rc2 --default" | |
user "root" | |
end | |
execute "Install default gems" do | |
command "gem install chef-sudo mixlib-authentication mixlib-cli mixlib-config mixlib-log rake json --no-ri --no-rdoc" | |
user "root" | |
end | |
execute "Install chef" do | |
command "gem install chef -v '=0.8.10' --no-ri --no-rdoc" | |
user "root" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu, 29 Jul 2010 14:58:55 +0200] INFO: Starting Chef Run | |
[Thu, 29 Jul 2010 14:58:59 +0200] INFO: Replacing the run_list with ["recipe[rvm::install]", "recipe[rvm::remove_ruby]"] from JSON | |
[Thu, 29 Jul 2010 14:59:00 +0200] INFO: Storing updated cookbooks/rvm/recipes/install.rb in the cache. | |
[Thu, 29 Jul 2010 14:59:04 +0200] INFO: Ran script[Install rvm] successfully | |
[Thu, 29 Jul 2010 14:59:04 +0200] INFO: Ran execute[Adding rvm source to /etc/source] successfully | |
[Thu, 29 Jul 2010 15:04:13 +0200] INFO: Ran execute[Install Ruby 1.9.2] successfully | |
[Thu, 29 Jul 2010 15:04:13 +0200] INFO: Ran execute[Make sure permissions are set correctly] successfully | |
[Thu, 29 Jul 2010 15:04:13 +0200] ERROR: execute[Load rvm source] (/var/lib/chef/cache/cookbooks/rvm/recipes/install.rb line 46) had an error: | |
No such file or directory - source /usr/local/lib/rvm | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:282:in `exec' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:282:in `popen4' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:244:in `fork' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:244:in `popen4' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:155:in `output_of_command' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:144:in `chdir' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:144:in `output_of_command' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:121:in `run_command' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/provider/execute.rb:49:in `action_run' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:60:in `send' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:60:in `run_action' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:114:in `converge' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:113:in `each' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:113:in `converge' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection.rb:94 | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/runner.rb:91:in `converge' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/client.rb:332:in `converge' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/client.rb:87:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/application/client.rb:215:in `run_application' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/application/client.rb:207:in `loop' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/application/client.rb:207:in `run_application' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/application.rb:62:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/chef-client:26 | |
/usr/local/bin/chef-client:19:in `load' | |
/usr/local/bin/chef-client:19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment