When I first started working with Chef, there were a couple of areas that I knew were going to be really awesome and helpful but I wasn’t sure how to get started with them. In this presentation, I’ll provide a quick introduction to five things you’ve always wanted to know about Chef but were afraid to ask.
I gave this presentation at #ChefConf 2012.
Level-up your Chef skills by learning about these areas of Chef:
- Attribute Precedence - Role, environment, cookbook, data bag? Which attribute value will be used in my chef run?
- Encrypted Databags - Chef 0.10 brought us encrypted databags. We’ll look at how to create and use databags and how to keep them up-to-date in your repository.
- LWRP - What is a LWRP? How and why do you create one? We’ll look at a couple of sample LWRPs and learn how to build a simple one.
- Error Handlers - Demystify exception and report handlers by writing a simple one and seeing examples of how they work in the wild.
- Capistrano and Chef - Take a quick look at why and how to integrate Chef search into your Capistrano configuration to make deploying your Rails apps even easier.
One thing I didn’t mention in the presentation was how to use the data from the encrypted data bag. I’ve updated the slides to include this info but it doesn’t appear in the video. In any case, here’s a quick demo of how you might use it:
1 2 3 4 5 6 7 8 9 10 11
Reposted from the CustomInk Technology blog.