Monospace Mentor logo Monospace Mentor
Courses Community Mentorship Content Contact
Courses Community Mentorship Content Contact

← Wiki index

Clean Chef code

Topics: Chef

In order to keep Chef cookbooks maintainable, it’s good practice to apply software engineering best practices.

  • Accessing Chef node attributes using helper methods.
  • Simplify data bag item access using a Data bag item object.
  • Depend on public cookbook interfaces instead of node attributes.
  • Avoid array node attributes
Copyright Jochen Lillich, trading as Monospace Mentor. All Rights Reserved.