I’m getting the following error with application_ruby. It’s probably
something I’ve missed. I’m running it locally with vagrant and berkshelf,
both files below. Any help would be appreciated.
Thanks
Rob
[2013-12-04T22:30:37+00:00] INFO: Start handlers complete.
================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
NameError
uninitialized constant Chef::DSL
Cookbook Trace:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:23:in
`class_from_file’
Relevant File Content:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:
1: #
2: # Author:: Noah Kantrowitz noah@opscode.com
3: # Cookbook Name:: application
Vagrantfile
Vagrant.configure(“2”) do |config|
config.vm.box = "Berkshelf-CentOS-6.3"
config.berkshelf.enabled = true
config.vm.box_url = "
https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
config.vm.hostname = "devirsatel"
config.vm.network :forwarded_port, guest: 8080, host: 9080
config.vm.network :forwarded_port, guest: 15672, host: 15672
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "application_ruby"
chef.data_bags_path = "data_bags"
end
end
Berksfile
site :opscode
cookbook “application_ruby”