Chef – Infra Automation

Course Objective

T
hrough this course, you will learn:

Chef is both the name of a company and the name of a configuration management tool written in Ruby and Erlang. It uses a pure-Ruby, domain-specific language (DSL) for writing system configuration “recipes”. Chef 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 and Rackspace to automatically provision and configure new machines. Chef contains solutions for both small and large scale systems.

Delivery Method:

  • Instructor
  • Hands on Lab

Duration of Boot Camp:

  • 3 day

                  

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