Book Image

Mastering Chef

By : Mayank Joshi
Book Image

Mastering Chef

By: Mayank Joshi

Overview of this book

Table of Contents (20 chapters)
Mastering Chef
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Knife and Its Associated Plugins
10
Data Bags and Templates
Index

Attribute precedence


Attributes are always applied by the chef-client in the following order:

  1. The default attribute specified in a cookbook attribute file.

  2. The default attribute specified in a recipe.

  3. The default attribute specified in an environment.

  4. The default attribute specified in a role.

  5. The force_default attribute specified in a cookbook attribute file.

  6. The force_default attribute specified in a recipe.

  7. The normal attribute specified in a cookbook attribute file.

  8. The normal attribute specified in a recipe.

  9. The override attribute specified in a cookbook attribute file.

  10. The override attribute specified in a recipe.

  11. The override attribute specified in a role.

  12. The override attribute specified in an environment.

  13. The force_override attribute specified in a cookbook attribute file.

  14. The force_override attribute specified in a recipe.

  15. The automatic attribute collected during the Ohai run.

The last attribute in this list has highest precedence and it's the one that dictates the value associated with an attribute...