Apt cookbook bug


#1

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


#2

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ć jasna.bencic@teamsnap.comwrote:

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


#3

Good to know

I have Chef 11.6.0 on my machine but when I run vagrant provision there is
Chef 10.14.2

Why is that?

On Tue, Aug 6, 2013 at 9:37 PM, Andrew Gross andrew@yipit.com wrote:

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ć jasna.bencic@teamsnap.comwrote:

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


#4

Vagrant Boxes have their own embedded Chef version since they are a
separate VM.

On Tue, Aug 6, 2013 at 3:40 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Good to know

I have Chef 11.6.0 on my machine but when I run vagrant provision there is
Chef 10.14.2

Why is that?

On Tue, Aug 6, 2013 at 9:37 PM, Andrew Gross andrew@yipit.com wrote:

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ć jasna.bencic@teamsnap.comwrote:

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


#5

Oh, I see, thanks for info Andrew

On Tue, Aug 6, 2013 at 9:45 PM, Andrew Gross andrew@yipit.com wrote:

Vagrant Boxes have their own embedded Chef version since they are a
separate VM.

On Tue, Aug 6, 2013 at 3:40 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Good to know

I have Chef 11.6.0 on my machine but when I run vagrant provision there
is Chef 10.14.2

Why is that?

On Tue, Aug 6, 2013 at 9:37 PM, Andrew Gross andrew@yipit.com wrote:

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ć jasna.bencic@teamsnap.comwrote:

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


#6

You might want to try one of the boxes listed here: https://github.com/opscode/bento and use the vagrant-omnibus plugin to put Chef on the boxes. Works great.
https://github.com/schisamo/vagrant-omnibus

Thanks,
Matt Ray
Cloud Integrations Product Lead :: Opscodehttp://opscode.com
512.731.2218 :: matt@opscode.com
mattray :: GitHubhttp://github.com/mattray/ :: IRC :: Twitterhttp://twitter.com/mattray


From: Jasna Ben?i? jasna.bencic@teamsnap.com
Sent: Tuesday, August 06, 2013 2:47 PM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Re: Re: apt cookbook bug

Oh, I see, thanks for info Andrew

On Tue, Aug 6, 2013 at 9:45 PM, Andrew Gross <andrew@yipit.commailto:andrew@yipit.com> wrote:
Vagrant Boxes have their own embedded Chef version since they are a separate VM.

On Tue, Aug 6, 2013 at 3:40 PM, Jasna Ben?i? <jasna.bencic@teamsnap.commailto:jasna.bencic@teamsnap.com> wrote:
Good to know

I have Chef 11.6.0 on my machine but when I run vagrant provision there is Chef 10.14.2

Why is that?

On Tue, Aug 6, 2013 at 9:37 PM, Andrew Gross <andrew@yipit.commailto:andrew@yipit.com> wrote:
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? <jasna.bencic@teamsnap.commailto:jasna.bencic@teamsnap.com> 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


#7

Yes Matt,

got the info for that before you sent me message

thanks for answer, appreciate it

On Tue, Aug 6, 2013 at 9:57 PM, Matt Ray matt@opscode.com wrote:

You might want to try one of the boxes listed here:
https://github.com/opscode/bento and use the vagrant-omnibus plugin to
put Chef on the boxes. Works great.
https://github.com/schisamo/vagrant-omnibus

Thanks,

Matt Ray
Cloud Integrations Product Lead :: Opscode http://opscode.com
512.731.2218 :: matt@opscode.com
mattray :: GitHub http://github.com/mattray/ :: IRC :: Twitterhttp://twitter.com/mattray


From: Jasna Benčić jasna.bencic@teamsnap.com
Sent: Tuesday, August 06, 2013 2:47 PM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Re: Re: apt cookbook bug

Oh, I see, thanks for info Andrew

On Tue, Aug 6, 2013 at 9:45 PM, Andrew Gross andrew@yipit.com wrote:

Vagrant Boxes have their own embedded Chef version since they are a
separate VM.

On Tue, Aug 6, 2013 at 3:40 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Good to know

I have Chef 11.6.0 on my machine but when I run vagrant provision there
is Chef 10.14.2

Why is that?

On Tue, Aug 6, 2013 at 9:37 PM, Andrew Gross andrew@yipit.com wrote:

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ć <jasna.bencic@teamsnap.com

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