[chef] Re: apt cookbook bug


Chronological Thread 
  • From: Andrew Gross < >
  • To: chef < >
  • Subject: [chef] Re: apt cookbook bug
  • Date: Tue, 6 Aug 2013 15:37:52 -0400

This fails on older versions of Chef < 11.0.0, the recent bump to 2.0 denoted this I believe.


On Tue, Aug 6, 2013 at 3:28 PM, Jasna Benčić < " target="_blank"> > wrote:
If you find trouble with  community's apt cookbook like I did

"Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb
================================================================================
NameError
---------
undefined local variable or method `use_inline_resources' for #<Class:0xb7106a14>"



Solution: Go under chef-repo/cookbooks/apt/providers/ and open repository.rb file  and erase use_inline_resources variable because it is extra and not needed... Also, it gives a headache when you are trying to run vagrant provision for  simple recipes like installation of vim or any other package that uses apt.. So,  unless you erase it apt will fail every time


Hope this helps someone,

Cheers,

Jasna






Archive powered by MHonArc 2.6.16.

§