Learn the intermediate-level skills you need to automate the deployment, provisioning, and configuration of machines and applications with Chef.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Using the exercise files
- Getting set up
- Use Vagrant to create an Ubuntu node
- The Chef development kit
- Build a setup recipe with resources
- Converge with the chef-client
- Cookbooks to organize recipes
- The LAMP cookbook
- The web recipe
- Ohai and system inventory
- Using node attributes for tunables
- Templates for config files
- The Chef Supermarket
- Wrapper cookbooks and dependencies
- Refactor using the httpd community cookbook
- The hosted Chef server
- Grab the starter kit and reorganize
- Upload cookbooks with Berkshelf
- Bootstrap the Vagrant node
- Add a dependency on MySQL
- The database cookbook
- Data bags for sensitive information
- Upload the data bags and converge
- Add PHP to the mix
- Create the php_app cookbook
- The MySQL script
- Populate the database
- The PHP homepage
- Review and deploy the LAMP cookbook
- What could we have done differently?
- An introduction to Test Kitchen
- Configuring the .kitchen.yml
- Converge and destroy a Test Instance
- Kitchen verify
- Write an InSpec test
- Next steps
Taught by
Robin Beck