- From: Brian Akins <
>
- To:
- Subject: [chef] Re: node.save?
- Date: Fri, 9 Sep 2011 07:31:04 -0400
On Sep 9, 2011, at 7:16 AM, Ranjib Dey wrote:
>
its saved at the end of the run automatically. If you are setting an
>
attribute in the recipe and trying to reuse it in the same recipe
>
afterwards u make an explicit node.save call.
>
No, you don't have to save to use later in the same run. node.save persists
it on the chef-server. This is useful to do if you know other nodes may need
this node's attributes "right away." One case in mysql master/slave
configurations that was discussed on the list in the last few days.
Also, correct me if I am wrong, if a chef-client run fails, then node.save is
not automatically called at the end.
--Brian
Archive powered by MHonArc 2.6.16.