[chef] Re: Re: err in apt cookbook


Chronological Thread 
  • From: Sam < >
  • To:
  • Subject: [chef] Re: Re: err in apt cookbook
  • Date: Wed, 12 Jun 2013 11:30:07 +0100

This happened to me too, I'm now pinning it my environments:

  cookbook 'apt', '= 1.9.0'



On 12 June 2013 11:28, Alex Kiernan < " target="_blank"> > wrote:
At a guess you're using Chef 10 but the apt cookbook which has been updated to use use_inline_resources which is new in Chef 11:



On Wed, Jun 12, 2013 at 11:19 AM, < " target="_blank"> > wrote:

Hi,

 

 

I am trying Zenoss cookbook. But while I run chef-client I see below error. Any help appreciated.

 

 

 

 

[Wed, 12 Jun 2013 10:16:08 +0000] INFO: Storing updated cookbooks/openssh/README.md in the cache.

[Wed, 12 Jun 2013 10:16:08 +0000] INFO: Storing updated cookbooks/openssh/CHANGELOG.md in the cache.

[Wed, 12 Jun 2013 10:16:08 +0000] INFO: Storing updated cookbooks/openssh/LICENSE in the cache.

 

================================================================================

Recipe Compile Error in /var/cache/chef/cookbooks/apt/providers/repository.rb

================================================================================

 

NameError

---------

undefined local variable or method `use_inline_resources' for #<Class:0x7f4f6c94e6d0>

 

Cookbook Trace:

---------------

  /var/cache/chef/cookbooks/apt/providers/repository.rb:20:in `class_from_file'

 

Relevant File Content:

----------------------

/var/cache/chef/cookbooks/apt/providers/repository.rb:

 

13:  # Unless required by applicable law or agreed to in writing, software

14:  # distributed under the License is distributed on an "AS IS" BASIS,

15:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

16:  # See the License for the specific language governing permissions and

17:  # limitations under the License.

18:  #

19:

20>> use_inline_resources

21:

22:  def whyrun_supported?

23:    true

24:  end

25:

26:  # install apt key from keyserver

27:  def install_key_from_keyserver(key, keyserver)

28:    execute "install-key #{key}" do

29:      if !node['apt']['key_proxy'].empty?

 

[Wed, 12 Jun 2013 10:16:08 +0000] ERROR: Running exception handlers

[Wed, 12 Jun 2013 10:16:08 +0000] FATAL: Saving node information to /var/cache/chef/failed-run-data.json

[Wed, 12 Jun 2013 10:16:08 +0000] ERROR: Exception handlers complete

[Wed, 12 Jun 2013 10:16:08 +0000] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out

[Wed, 12 Jun 2013 10:16:08 +0000] FATAL: NameError: undefined local variable or method `use_inline_resources' for #<Class:0x7f4f6c94e6d0>

 

 

 

 

 

 

regards,

Haynes Davis

 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited.

Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

______________________________________________________________________________________

www.accenture.com



--
Alex Kiernan



--
http://about.me/pikesley



Archive powered by MHonArc 2.6.16.

§