[chef] Re: Re: Re: How does chef keep state to skip the recipe from running multiple time


Chronological Thread 
  • From: "John E. Vincent (lusis)" < >
  • To:
  • Subject: [chef] Re: Re: Re: How does chef keep state to skip the recipe from running multiple time
  • Date: Sun, 10 Mar 2013 04:52:40 -0400

On Sun, Mar 10, 2013 at 1:34 AM, howard chen 
< >
 wrote:
> Hi,
>
>
> On Sun, Mar 10, 2013 at 2:07 PM, Jeffrey Hulten 
> < >
>  wrote:
>> Are you talking between multiple runs or within the same run?
>> --
>
> Good question.
>
> I mean in multiple runs.
>
> Thanks.

Are you sure they're not running? This sounds more like a case of chef
doing what it's supposed to which is not changing something that
doesn't need to be changed. The recipes are likely being run but Chef
says "file hasn't changed. nothing to do" or "service is already
running. nothing to do".

There are some cases where recipes are coded to actually remove
themselves from the run list after one run but that's a rare case and
certainly not in any opscode official cookbook I've ever seen. I've
only used that sparingly.



Archive powered by MHonArc 2.6.16.

§