[chef] Re: Set node attrs at compile-time from pure-ruby code in a recipe


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Set node attrs at compile-time from pure-ruby code in a recipe
  • Date: Mon, 22 Jul 2013 13:06:20 -0700

node.set['foo']['bar'] or node.default,,, all these outside the ruby_block resource should be invoked during compile time


On Mon, Jul 22, 2013 at 1:00 PM, Jeff Blaine < " target="_blank"> > wrote:
Does anyone have a quick example showing how to set a node attribute from within (our) Ruby code that is executing during the compile phase? Probably very simple to do, but I'm in uncharted territory here and not a Ruby-as-primary-lang person.




Archive powered by MHonArc 2.6.16.

§