Good question.I'm now to Chef so I'm using pretty much the latest of everything. I was a bit worried that the vm image was a little old so I triedconfig.vm.provision :shell, :inline => "curl -L https://www.opscode.com/chef/install.sh | sudo bash"which didn't helpOn 4 December 2013 22:50, Noah Kantrowitz < " target="_blank"> > wrote:
What version of Chef are you using?
--Noah
On Dec 4, 2013, at 2:48 PM, Rob Watkin < " target="_blank"> > wrote:
> 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 < " target="_blank"> >
> 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"
>
Archive powered by MHonArc 2.6.16.