[chef] Re: Re: Re: Re: Re: Re: Arbitrary attributes for nodes


Chronological Thread 
  • From: Seth Chisamore < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Arbitrary attributes for nodes
  • Date: Tue, 15 Feb 2011 11:14:07 -0500

+1 for a nice simple articulation...added to the wiki:
http://wiki.opscode.com/display/chef/Attributes#Attributes-UsageBestPractices

Seth

--
Opscode, Inc.
Seth Chisamore, Technical Evangelist
T: (404) 348-0505 E: " target="_blank">
Twitter, IRC, Github: schisamo



On Tue, Feb 15, 2011 at 11:05 AM, Daniel DeLeo < "> > wrote:

On Tuesday, February 15, 2011 at 7:47 AM, Tristan Sloughter wrote:

Hmm, so yes adding the default.rb to attributes works for the default values. But adding to override does not actual override. I'm still getting 0 (which I placed in default.rb instead of 1 which I placed in override). Could there be a reason that its not updating the information on the client when run?

Tristan
Nodes can't have their own persistent override attributes. However, "normal" level attributes will win over default level attributes, so you should use these to get the behavior you want.

The general pattern for attributes precedence is that cookbooks and roles should be setting defaults. If you need to change the values for a specific node, use, the normal attributes on the node. Overrides are there so roles can force a certain value even if the node already has a value there. There are certainly other ways to use it, but that is the pattern it was designed for.

-- 
Dan DeLeo





Archive powered by MHonArc 2.6.16.

§