|

Review
Attributes are Node data such as the IP address, hostname, loaded kernel modules, version of programming languages available on the system and more.
During the Chef run, the Chef Client saves node attributes on the Chef Server where they are indexed for Search.
Use of Automatic Attributes in Recipes
Node attributes can be set in recipes. This use of node attributes should do done when you want to calculate a derived value, or store some data on the node that should be persisted the next time Chef runs. For more information on the use within recipes, see Node Attributes within Recipes.
Automatic Attribute Precedence
Attributes are applied in precedence order - with the fourth attribute type, automatic, containing Ohai data and having the highest precedence. As these automatic attributes will be re-written with each Ohai run - Chef doesn't provide any way to modify them.
The following attributes are those which are re-written with each Ohai run, so they should be recognized as being unmodifiable when considering the use of attributes.
You'll note that you can get this list directly yourself by running the command that produced it.
Additional attributes and sub-attributes can be viewed on a particular node by running ohai. This returns data as JSON.
|
|