hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.27k stars 4.43k forks source link

Attribute chef_packages is not defined!: stderr #114

Closed jqr closed 14 years ago

jqr commented 14 years ago

I'm unable to get any of the cookbooks to run using the ChefSolo provisioner and the OpsCode cookbooks. The error message is below, and I've also created an example project to show off the issue.

http://github.com/jqr/vagrant-test

[default] [Tue, 20 Jul 2010 15:04:37 -0700] INFO: Starting Chef Solo Run
: stdout
[default] /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/node/attribute.rb:387:in `method_missing': stderr
[default] : : stderr
[default] Attribute chef_packages is not defined!: stderr
[default]  (: stderr
[default] ArgumentError: stderr
[default] )
: stderr
[default]   from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/node.rb:254:in `send'
: stderr
[default]   from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/node.rb:254:in `method_missing'
: stderr
[default]   from /tmp/vagrant-chef/cookbooks-0/bootstrap/attributes/default.rb:35:in `from_file'
mitchellh commented 14 years ago

jqr,

This is because Chef on the base box is 0.8.x and the cookbooks you have appear to be for 0.9.x.

Coincidentally, I'll be updating the base box today, but until then, you can get around it by upgrading chef on the box, then re-running provisioning, either by calling vagrant provision or by doing a vagrant reload.

If this does not work, I'll take another look!

Mitchell

jqr commented 14 years ago

I had hoped to automatically upgrade chef on the system, using itself but had no luck.

Thanks for taking the time to dig into this! I'll check back later today for the updated base box.