[chef] Re: Listing files in cookbook/files/default/


Chronological Thread 
  • From: Joshua Timberman < >
  • To: " " < >
  • Subject: [chef] Re: Listing files in cookbook/files/default/
  • Date: Sun, 25 Sep 2011 13:44:11 -0600

Hello,

On Sep 24, 2011, at 17:06, "Jason J. W. Williams" < "> > wrote:

Is there a better way to dynamically list the contents of the
<cookbook>/files/default/ directory from a recipe at runtime than
inspecting that path in /var/chef/cache/cookbooks ?

My concern is that the Chef sometimes removes files from the cache
that are in the cookbook but it doesn't consider currently needed.

Chef only downloads cookbook_file and template assets if it needs to render the target file. Otherwise they are cleaned up at the end of the chef run. 



Archive powered by MHonArc 2.6.16.

§