5 Things You Didn't Know About Chef
summary
Five concrete takeaways: use Chef::Util::FileEdit (or the community line cookbook) to change one line in /etc/hosts via search_file_replace_line rather than templating the whole file; use Chef::VersionConstraint for numeric x.y.z comparisons and pessimistic matches; use chef-shell recipe mode and attributes/main contexts to prototype and inspect node state; iterate run_context.resource_collection to list or mutate resources; use chef-apply to load and execute a single recipe without a full cookbook.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 3:08What is Chef
- 6:36In-place file editing
- 12:15Version matching in environments
- 18:16Debugging with Chef Shell
- 27:55Exploring resource collection
- 33:10Using chef-apply
- 38:53Learning Chef resources
- 39:55Bonus round and FAQ
related talks
06mTen Quick Tips to Improve Your Chef Workflow
28mChef Cookbook Design Patterns
25mCooking with Chef - Your servers will thank you
41mChef Cookbook Testing Like a Pro
23mMy Life in the Chef Community
18mChef On The Train
42mCI Techniques for Delivering the Chef-Repo: Three Case Studies
33mDeveloping for Multi-Component Environments While Keeping Your Sanity
