- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Check for changed attribute values
- Date: Tue, 18 Mar 2014 09:44:29 -0700
On Tuesday, March 18, 2014 at 9:06 AM, Stewart, Curtis wrote:
>
Is there anyway to check if a node attribute has changed since the last
>
chef-client run?
>
>
My particular case is to run a rake task ONLY IF the specified git branch
>
attribute has changed since the last chef-client run.
>
>
Thanks,
>
Curtis
The old state isn’t kept around. Would it be possible to look at the state of
the system to figure this out, e.g., add something like
only_if “git branch SOMETHING SOMETHING”
to your execute resource?
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.