Last active
August 29, 2015 13:56
-
-
Save breu/9219114 to your computer and use it in GitHub Desktop.
chef attribute precedence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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