node.set[:num] = 1
On Tue, Feb 15, 2011 at 10:03 AM, Tristan Sloughter
< "> > wrote:
> Maybe I'm missing something but the wiki pages on attributes and their use
> in roles, nodes and recipes is confusing me.
> I'd simply like to be able to set arbitrary attributes on a node that can be
> used in a recipe.
> Meaning somewhere in the node's json place something like, { "num" : "1" }
> And be able to access this in any recipe the node is running like
> node[:num].
> Is this not possible? I tried placing key/values under default through a
> knife edit of the node but my attempts to access the values in a recipe
> returns nil.
> Thanks,
> Tristan
Archive powered by MHonArc 2.6.16.