- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: Recipes doing status checkins?
- Date: Fri, 30 Aug 2013 09:45:36 -0500
On Aug 29, 2013, at 7:23 PM, Larry Wright
<
>
wrote:
>
I've done this with a data bag. Just write to a 'progress' data bag at each
>
interval. As long as the data bag is only used for this purpose, there
>
shouldn't be any concurrency issues.
Since data bags can only be written to by one process at a time (and I don't
think there is any locking used), you end up having to use separate data bags
for each node, and then that starts to be a real pain.
>
Node.save would work, but there's a race condition with nodes where if you
>
modify it during the chef run, you might overwrite changes that occurred
>
externally (like someone running knife node run_list add).
Hmm. That's interesting. I hadn't considered that issue. I'll have to give
this one some more thought.
>
Hope this helps.
Yup! Thanks!
--
Brad Knowles
<
>
LinkedIn Profile: <
http://tinyurl.com/y8kpxu>
Archive powered by MHonArc 2.6.16.