[chef] Re: Prevent resource from triggering multiple times in a single run


Chronological Thread 
  • From: Lamont Granquist < >
  • To:
  • Cc: Mark Selby < >
  • Subject: [chef] Re: Prevent resource from triggering multiple times in a single run
  • Date: Sun, 30 Aug 2015 18:25:19 -0700



On 08/30/2015 06:24 PM, Lamont Granquist wrote:

If its really a remote_file resource then those support etags and last-modified-since so it won't be expensive to run multiple times.

Generally when you have a call-many-times-run-only-once pattern you're looking at include_recipe'ing the expensive thing so it only gets created once in the resource collection.

You can also use a definition to edit the resource collection and the definition can check and exit if the resource always exists.
* already exists.



Archive powered by MHonArc 2.6.16.

§