On 09/09/2011 03:31 PM, Brian Akins wrote:Thanks for clarification, Brian!
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.
Yeah, this moment is still of interest, right.
Also, correct me if I am wrong, if a chef-client run fails, then node.save is not automatically called at the end.
Denis
Archive powered by MHonArc 2.6.16.