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