Chef – Infra Automation

Course Objective

T
hrough this course, you will learn:

The Chef – Infra Automation Course – is both the name of a company and the name of a configuration management tool written in Ruby and Erlang.

This tool uses a pure-Ruby, domain-specific language (DSL) for writing system configuration “recipes”.

It is used to streamline the task of configuring and maintaining a company’s servers and can integrate with cloud-based platforms such as

  • Amazon EC2

  • Google Cloud Platform

  • OpenStack

  • SoftLayer

  • Microsoft Azure

  • Rackspace

to automatically provide and configure new machines. Additionally, it contains solutions for both small and large-scale systems.

Introduction To Chef

  • Introduction To DevOps
  • What is Chef?
  • Common Chef Terminology
  • Chef Server
  • Chef Workstation
  • Chef Workstation – Looking At Security And Configs
  • Chef-Repo
  • Chef-Client
  • Servers And Nodes
  • Chef Configuration Concepts

Building The Web Server Cookbook

  • Getting Set Up
  • Starting The Apache Recipe
  • Adding Attributes, Recipe, And A Template
  • Attribute Precedence
  • Adding HTML Templates Dynamically With Chef
  • Recipe Includes And Dependencies
  • Copying Config Files To The Node
  • Executing Linux Commands On The Node
  • Adding Platform Support To The Cookbook
  • Adding The Local Chef-Repo To Github

Node Object And Search

  • What Is The Node Object?
  • Search Concepts
  • Searching Node Attributes Using Knife

Data-Bags

  • What Are Data Bags?
  • Creating User And Sudo Group Data Bags
  • Building A Recipe To Deploy Local User Accounts From Data Bags

Chef Environments

  • What Are Environments And Why Do They Matter?
  • Creating And Configuring Environments
  • Creating A Second Version Of Our WebServer Cookbook
  • Deploying To Different Environments
  • Viewing And Deleting Environments With Knife

Roles

  • What Are Roles?
  • Creating A Web Server Role
  • Building A Simple MySQL Cookbook For A Role
  • Creating A DB Server Role
  • Creating A Base Role

Extending Chef

  • Knife Plugins
  • Chef Supermarket And Chef-Client Cookbook

Deploying Nodes In Production

  • UnAttended Node Bootstrapping
  • Chef-Client Cookbook (Security And Automated Runs)

Using Open Source Chef Server

  • OpenSource Chef
  • Configuring The Workstation And Bootstrapping A Node
  • Closing: Bootstrapping Nodes And Deploying Cookbooks
All Rights Reserved © 2018 DevOps TechLab