[chef] Re: Chef server refusing to provide some files


Chronological Thread 
  • From: "Nguyen, Dang" < >
  • To: " " < >
  • Subject: [chef] Re: Chef server refusing to provide some files
  • Date: Tue, 9 Oct 2012 11:20:51 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

The error means that the Chef::Resource::File resource that you're using doesn't have a method called "source".
 Are you using the "file" resource instead of the cookbook_file resource?



On 10/9/12 11:11 AM, "Julian C. Dunn" < "> > wrote:

We're having a problem with our Chef (10.12) server where it's
refusing to provide some files to clients. For example, I have a
"collectd" cookbook with a files/default/redis_info.py, but when I try
to run the recipe that requires it, the Chef server refuses to give me
the file. I keep getting

[2012-10-09T14:03:00-04:00] FATAL: NoMethodError: undefined method
`source' for Chef::Resource::File

and inspecting the cookbook cache on the client, I see no "files"
directory under the relevant cookbook.

Downloading the cookbook by hand using "knife cookbook download" from
the Chef server works fine. What could be wrong?

- Julian




Archive powered by MHonArc 2.6.16.

§