[chef] application_ruby


Chronological Thread 
  • From: Rob Watkin < >
  • To: Chef List < >
  • Subject: [chef] application_ruby
  • Date: Wed, 4 Dec 2013 22:48:43 +0000

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:  #
  3:  # Cookbook Name:: application


Vagrantfile
========

Vagrant.configure("2") do |config|
  config.vm.box = "Berkshelf-CentOS-6.3"
  config.berkshelf.enabled = true
  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.

§