[chef] Re: Re: node.save?


Chronological Thread 
  • From: Denis Barishev < >
  • To:
  • Subject: [chef] Re: Re: node.save?
  • Date: Fri, 09 Sep 2011 15:30:35 +0400

Yeah. I suspected this. What if run fails will be the attribute saved then?
Talking about reusing the attribute in the same recipe during the same run. I sure the attribute is available as soon as it set. There's no a particular need to do node.save.
So I don't quite understand that what you mean by this, Ranjib.

Denis

On Fri 09 Sep 2011 03:16:15 PM MSD, 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.

On Fri, Sep 9, 2011 at 4:16 PM, Denis Barishev < <mailto: >> wrote:

    Hey all,

    How do you think why we meet the node.save command in many
    recipes? For example, I've seen it in the mysql recipe.
    As far as I understand any attributes that are set in recipes are
    automatically persisted.
    So what for is the 'node.save' command then?

    Thanks for any ideas

    Denis







Archive powered by MHonArc 2.6.16.

§