Summary

This brings us to the end of our journey in to the world of data bags and templates. We've seen how to manage data bags, and use data bags to store sensitive data by encrypting the content. We have, finally, learnt about using templates and also touched upon the use of partial templates. By now, you would've realized how useful these two features of Chef are. With the proper use of data bags and templates, you can write really efficient Chef code, which is more robust and clean. In the next chapter, we will look into one of the very powerful features of Chef, called search, and along the way we will also explore its API.

Get Mastering Chef now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.