Updated with Docker, Ansible and more
In this segment, you will…
The definition of system in sysadmin is changed. Cloud is the new system. You will learn Open Source Chef as a DevOps tool that helps systematically synchronize your development and operations work across your entire organization.
You will study the architecture of open source Chef and its associated toolset.
• Overview of Chef
• Workstation Setup
• Node Setup
• Dissecting your first Chef run
• Introducing the Node object
• Chef resources and recipes
• Attributes, templates, and cookbook dependencies
• Recipe inclusion, data bags, and search roles
• Environments and
• Using community cookbooks
You will learn Chef by using it to solve a real business problem. You will build up on what you learn using Chef on your computer and apply that to one or more IAAS service providers such as Amazon Web Services or Google Compute Engine or Digital Ocean as examples.
In this course you will have a chance to work with the instructor get your hands dirty with some of the finer aspects of putting open source Chef to practical use with cloud computing services providers.
Chef can work in solo mode and also in conjunction with a chef server which is also an open source product that many organizations deploy internally to keep the entire internal as well as cloud infrastructure properly orchestrated accordingly to the policy set by your organization.
You will set up a chef server as a group exercise and use that chef server as a playground before advocating these concepts for adoption in your organization. At the end of the class, you will have a code repository that can be used and modified to your specific business problems at work.
- Chef Solo
- Prepare kitchen foundation
- Stock your kitchen
- Define a node and work with it
- Create and connect to a node in the cloud
- Prepare your node for use with Chef
- Run your kitchen on that node
- Define roles for your nodes
- Assign multiple roles to a node
- Assign Attributes to your nodes
- Define Environments
- Define Data Bags and Data Bag Items
- Create Encrypted Data Bag to securely keep secrets
- Exercise: Set up a node that has mysql server ready with root password
- Solution to the exercise
- Verification of the solution
- Prepare your kitchen to work with Chef Server
- Enforce version discipline with a Gemfile
- Prepare knife configuration
- Gather community cookbooks
- A place for your custom cookbooks
- Send cookbooks to Chef server
- Create environments for your infrastructure
- Define roles for your machines
- Set up a sysadmin user
- Encrypt your secrets before sending to Chef server
- Make MySQL recipe use password from data bag
- Add your public key to your cloud provider
- Create a machine to run the app stack
- Specify roles for the machine you just created
- Connect to your node and run chef
- Test and validate for success
- Add application and see it go live!
- Automating end to end
- Create a custom cookbook for end to end automation
- Setup a database and a user
- Create default recipe for dbuser cookbook
- Expand the webserver role to invoke dbuser and app cookbooks
- Run chef and watch the app deployment automation – end to end