Cookbooks, compliance, and fleet management
Day 1
Cookbook Development & Resources
- Chef architecture: Chef Server, Chef Infra Client, Workstation, nodes — the client-server convergence model
- Ruby DSL basics for Chef: Resources, providers, attributes, templates — the building blocks of Chef code
- Writing cookbooks: Recipe structure, metadata.rb, Berksfile — laying out a well-organized cookbook
- Core resources: package, service, template, file, directory, execute — the resources you'll use daily
- Chef attributes: Precedence levels, node attributes, data bags — managing configuration data safely
- Ohai: System facts and custom plugins — using node data in recipes and templates
- Testing cookbooks locally with Chef Workstation: knife, chef commands — the local development loop
- InSpec: Writing compliance tests for your cookbook that run in CI and production
Day 2
Roles, Environments & Chef Automate
- Roles: Grouping recipes and attributes for node types — building a role hierarchy
- Environments: Controlling cookbook versions per environment — dev, staging, production cookbook pinning
- Policyfiles: Replacing roles/environments with immutable policy assignments — the modern approach
- Berkshelf dependency management: Cookbook versioning and dependency resolution
- Chef Supermarket: Consuming and wrapping community cookbooks safely
- Chef Automate: Compliance scanning, convergence reporting, workflow — fleet-wide visibility
- Knife: Node bootstrapping, data bag management, environment management
- CI/CD for cookbooks: Test Kitchen, ChefSpec, GitHub Actions pipeline for cookbook validation
What your team walks away with
Cookbook authors who can develop, test, and deploy Chef configuration at enterprise scale — from single-node development to fleet-wide Automate management.
- Write and test Chef cookbooks using the full Ruby DSL
- Structure reusable cookbooks with attributes, roles, and environments
- Validate compliance with InSpec tests integrated in the cookbook pipeline
- Operate node fleets through Chef Automate with full convergence visibility
Book the Chef training
Available standalone or combined with the Puppet or Ansible training for a configuration management comparison.
Get in touch