Skip to content

Instantly share code, notes, and snippets.

@breu
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breu/9219114 to your computer and use it in GitHub Desktop.
Save breu/9219114 to your computer and use it in GitHub Desktop.
chef attribute precedence
Attribute Precedence
Attributes are always applied by the chef-client in the following order:
1. A default attribute located in a cookbook attribute file
2. A default attribute located in a recipe
3. A default attribute located in an environment
4. A default attribute located in role
5. A force_default attribute located in a cookbook attribute file
6. A force_default attribute located in a recipe
7. A normal attribute located in a cookbook attribute file
8. A normal attribute located in a recipe
9. An override attribute located in a cookbook attribute file
10. An override attribute located in a recipe
11. An override attribute located in a role
12. An override attribute located in an environment
13. A force_override attribute located in a cookbook attribute file
14. A force_override attribute located in a recipe
15. An automatic attribute identified by Ohai at the start of the chef-client run
where the last attribute in the list is the one that is applied to the node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment