O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chef Fundamentals: A Recipe for Automating Infrastructure

Video Description

The Chef-Certified beginner’s guide to developing cookbooks locally and distributing changes with a Chef Server

About This Video

  • A basic understanding of system administration, such as what it means to install and configure packages and start services.
  • Beginner-level experience navigating a Terminal, such as Powershell or Bash, and using it to perform basic file manipulations
  • Understand how to use a command-line text editor, like Vi, Emacs or Nano to edit files.

In Detail

Are you the only Chef in the kitchen? Is your infrastructure suffering from snowflake servers? Are you sick and tired of provisioning machines by hand every time you need to put out a fire? Configuring infrastructure shouldn’t be painful, it should be a joy. Chef Fundamentals has been reviewed and approved by the Chef Training team. The Chef team looks forward to the development of additional Chef Courses. Chef is a platform for the DevOps workflow, and is used to automate and manage it all--infrastructure, run-time environments and applications. The most enduring and transformative companies use Chef to become fast, efficient, and innovative software-driven organizations. Join Robin Beck as he automates everything in the only Chef-Certified class. Learn to combine resources into recipes, recipes into cookbooks, and transform your infrastructure into code. With Chef we’ll learn to use the power of the Ruby language to eloquently describe the state of a system, whether you’re new to automation or have been administering systems since 1992. We’ll learn how to locally configure a server with the Chef Development Kit, then use the power of a Chef Server to distribute your cookbook to one, or a hundred systems.

All the code and supporting files for this course are available at: https://github.com/PacktPublishing/Chef-Fundamentals-A-Recipe-for-Automating-Infrastructure

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Welcome to Chef Fundamentals
    1. Chef Fundamentals - Is this class right for me? 00:02:53
    2. Course Roadmap 00:02:17
    3. Getting Started: Configuring Your Development Environment 00:02:16
    4. Exercise: Install the ChefDK 00:03:04
    5. Setup: Configure Your Lab Environment with Vagrant and Virtualbox 00:12:43
    6. Bonus Setup: Configure Your Lab Environment with Amazon Web Services 00:18:00
  2. Chapter 2 : Chef and Configuration Management
    1. What is Configuration Management? 00:03:38
    2. Infrastructure as Code 00:03:00
    3. Exercise: Your First Chef Recipe 00:06:54
    4. How Chef Thinks About System Components 00:02:50
  3. Chapter 3 : Resources: Chef's Basic Building Blocks
    1. Overview: Chef Resources 00:01:55
    2. Exploring System Resources 00:07:14
    3. Convergence and Desired State 00:06:31
    4. Exercise: Create a Workstation Setup Recipe 00:07:25
    5. Organizing Resources with Recipes 00:03:03
  4. Chapter 4 : Cookbooks
    1. Overview: Chef Resources 00:01:07
    2. Organizing Recipes with Cookbooks 00:03:31
    3. Cookbook Components 00:09:33
    4. Revision Control with Git 00:16:37
    5. Exercise: Deploy an Apache Webserver 00:06:49
  5. Chapter 5 : The chef-client run
    1. Overview: The chef-client run 00:01:03
    2. Applying Recipes and Cookbooks 00:06:18
    3. Exercise: The include_recipe method 00:04:02
  6. Chapter 6 : Ohai
    1. Overview: Taking System Inventory 00:01:27
    2. An Object Called 'Node' 00:08:40
    3. Accessing Node Attributes 00:10:15
    4. Exercise: Add Node Details to the Web Application 00:05:18
  7. Chapter 7 : Templates
    1. Overview: Using Template Resources 00:01:07
    2. Why Use Templates? 00:04:42
    3. Understanding Embedded Ruby 00:07:29
    4. Adding Templates to Recipes 00:08:27
    5. Exercise: Refactor the Web Application with a Template 00:06:32
  8. Chapter 8 : Other common Resources
    1. Overview: Other Common Resources 00:01:17
    2. cookbook_file 00:07:43
    3. remote_file 00:08:09
    4. execute 00:13:20
    5. user and group 00:05:36
    6. sending and receiving notifications 00:08:36
  9. Chapter 9 : Troubleshooting and Bonus Content
    1. Overview: Debugging, Linting, and Testing 00:01:26
    2. Explore the ChefDK 00:08:13
    3. Your Toolkit 00:09:16
    4. Overview: The Troubleshooting Process 00:06:02
    5. Overview: Demo: Breaking Things 00:12:47
    6. Bonus: Intro to Test Kitchen 00:17:23
    7. Bonus: Intro to ChefSpec 00:13:45
  10. Chapter 10 : The Chef Server
    1. Overview: Interfacing with a Chef Server 00:02:03
    2. Why use a Chef Server? 00:06:13
    3. Exercise: Getting Started with Hosted Chef 00:07:46
    4. Exercise: Uploading Cookbooks 00:06:42
    5. Exercise: Reconfigure Your Vagrant Environment 00:06:14
    6. Exercise: Bootstrap your Web Server 00:08:47
  11. Chapter 11 : Community Cookbooks
    1. Overview: Custom Cookbooks and the Chef Supermarket 00:01:39
    2. Exploring the Supermarket 00:08:35
    3. Create a Wrapper Cookbook 00:12:49
    4. Adding Webserver Members 00:09:27
    5. Managing Cookbooks with Berkshelf 00:09:51
    6. Exercise: Deploy a Load Balancer 00:08:23
  12. Chapter 12 : Managing Nodes
    1. Overview: Going Full-Scale 00:01:02
    2. Adding Nodes to your Organization 00:05:47
    3. Exercise: Add a Member to the Load Balancer 00:10:08
    4. Demo: Verifying Node Data with Knife 00:07:13
    5. Bonus: Run the chef-client on a Schedule 00:13:12
  13. Chapter 13 : Roles
    1. Overview: Managing run-lists 00:01:10
    2. Describing run-lists with Roles 00:03:23
    3. Demo: Methods for Creating and Assigning Roles 00:10:41
    4. Exercise: Create the load-balancer Role 00:05:45
    5. Bonus: Converge Using the 'knife ssh' Command 00:09:57
  14. Chapter 14 : Search
    1. Overview: Indexing and Search 00:00:56
    2. Exploring Chef Server Indices 00:03:32
    3. Running Searches with knife 00:08:30
    4. Demo: Refactor for Dynamic Load Balancing 00:10:58
    5. Exercise: Testing the Load Balancer 00:05:42
  15. Chapter 15 : Environments
    1. Overview: Control Your Deployment 00:01:17
    2. What is a Chef Environment? 00:02:30
    3. Creating and Managing a Production Environment 00:11:46
    4. Exercise: Deploy a Web Server to an Acceptance Environment 00:05:28
    5. Exercise: Refine the Load Balancer 00:11:38
  16. Chapter 16 : Data Bags
    1. Overview: Organizing Custom Data Sets 00:01:01
    2. What's in the Bag? 00:02:24
    3. Creating and Managing Data Bags 00:11:26
    4. Dynamic Search and Find 00:08:37
    5. Exercise: Creating Users and Groups with Search 00:16:22
    6. Demo: Encrypting Your Secrets 00:09:19
  17. Chapter 17 : Graduation: Further Resources
    1. What have we learned? 00:01:31
    2. Continuous Learning and Continuous Delivery 00:03:08
    3. Keep Learning and Practicing 00:03:37
    4. Your Chef Community 00:03:32