fnichol/chef-user

Name error while Vagrant/chef setup

Closed this issue · 2 comments

Vagrant setup:

  config.vm.define "nginx" do |nginx|
    nginx.vm.box = "hashicorp/precise64"
    nginx.vm.network "private_network", ip: "192.168.33.110"
    nginx.vm.provision "chef_zero" do |chef|
     chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
     chef.install = false
    #  chef.add_recipe "nginx"
    end
  end

Error message

==> nginx: ================================================================================
==> nginx: Recipe Compile Error in /tmp/vagrant-chef/375f1ae162902bb20345a95ec67bb151/cookbooks/user/providers/account.rb
==> nginx: ================================================================================
==> nginx: 
==> nginx: NameError
==> nginx: ---------
==> nginx: undefined local variable or method `use_inline_resources' for #<Class:0x7f0d9b9ad508>
==> nginx: 
==> nginx: Cookbook Trace:
==> nginx: ---------------
==> nginx:   /tmp/vagrant-chef/375f1ae162902bb20345a95ec67bb151/cookbooks/user/providers/account.rb:23:in `class_from_file'

@michaelachrisco chef version?

User error. Closing.