cookbook_file update


#1

Hi,

I am working on a cookbook that will only run an action if a cookbook_file
changes. I see the action create_if_missing, is there something similar like
create_if_updated? Or is there something else, and I am completely missing it?

Thanks for your help in advance,

Geoff


#2

can you explain a bit more? action :create will update the file whenever
its changed, and its also the default action iirc

On Tue, Jul 30, 2013 at 7:26 PM, geoffreyowen@stratalux.com wrote:

Hi,

I am working on a cookbook that will only run an action if a cookbook_file
changes. I see the action create_if_missing, is there something similar
like
create_if_updated? Or is there something else, and I am completely
missing it?

Thanks for your help in advance,

Geoff


#3

On Tuesday, July 30, 2013 at 7:26 PM, geoffreyowen@stratalux.com wrote:

Hi,

I am working on a cookbook that will only run an action if a cookbook_file
changes. I see the action create_if_missing, is there something similar like
create_if_updated? Or is there something else, and I am completely missing it?

Thanks for your help in advance,

Geoff
Looking for this? http://docs.opscode.com/resource_common.html#notifications


Daniel DeLeo


#4

Thanks Daniel! I do have these in the code. I made the mistake of not
replying to the list last night, but I think I figured this out.

It appears a directory was being deleted, and then recreated. So it was
forcing jetty to restart each chef run.

Thanks again for all the help.

Geoff

From: Daniel DeLeo dan@kallistec.com
Reply-To: chef@lists.opscode.com
Date: Wednesday, July 31, 2013 10:39 AM
To: chef@lists.opscode.com
Subject: [chef] Re: cookbook_file update

On Tuesday, July 30, 2013 at 7:26 PM, geoffreyowen@stratalux.com wrote:

Hi,

I am working on a cookbook that will only run an action if a cookbook_file
changes. I see the action create_if_missing, is there something similar like
create_if_updated? Or is there something else, and I am completely missing
it?

Thanks for your help in advance,

Geoff

Looking for this?
http://docs.opscode.com/resource_common.html#notifications


Daniel DeLeo