Chef Advanced
Schedules

Overview:

This 5-day course will provide deploying Chef infrastructure and configure Chef client and Chef workstation on Windows and Linux servers.

Prerequisite:

Linux basic skills (like working file and directories)

Who should attend:

Targeted for Cloud Engineers, Developers , Operations Engineer, Centre of Excellence Team, Microsoft Windows Server Administrators, Unix/Linux Administrators, Storage Administrators, Network Administrators, Virtualization Administrators.

Agenda:

Day 1 (Chef understanding, Chef Server install on Ubuntu, RHEL + Hosted Chef, Chef-Workstation)

Module 1: Chef – Overview

  • Devops Big-Picture
  • Devops Tools – SCM, CI/CD, Configuration management tool introduction
  • Where chef fits in entire devops culture/tools
  • Infrastructure-As-A-Code
  • Chef Components – 10000 feet overview
  • Chef Server

    Hosted Chef Server

    Chef Development kit

    Chef Nodes

    Recipes

    Cookbooks

    Chef Analytics

    Chef Push job server

     

    Module 2: Creating your own Chef server- Install and configure (Hands on lab by students)

  • Deploy Ubuntu 16.04 Server
  • SSH to Ubuntu Server
  • Install Chef-Server on Ubuntu 16.04 Linux Server
  • Install Chef-Manage on Chef-Server
  • Install and configure Chef-Reporting
  •  

    Assignment 01 : Creating your own Chef server- Install and configure on RHEL 7 (Hands on lab by students)

  • Deploy Ubuntu RHEL-7 Server
  • SSH to RHEL-7 Server
  • Install Chef-Server on RHEl-7 Linux Server
  • Install Chef-Manage on Chef-Server on RHEL
  • Install and configure Chef-Reporting RHEL
  •  

    Module 3: Working on hosted chef server (Hands on lab by students)

  • Create a user account on hosted chef server
  • Create organization on hosted chef server
  • Download chef-starter kit
  •  

    Module 4: Install and configure Chef-Workstation on Ubuntu (Hands on lab by students)

  • Deploy a Ubuntu 14.04 server
  • SSH to Ubuntu server
  • Install and configure Chef development kit
  • Configure knife to interact with your own Chef-Server
  • Configure knife to interact with your Hosted Chef-Server
  • Configure SSL based connection to Chef Server
  •  

    Day 2 (Register Chef-Node, Writing Cookbook for web on Ubuntu and RHEL)

    Assignemnet-02: Install and configure Chef-Workstation on RHEL (Hands on lab by students)

  • Deploy a RHEL 7 server
  • SSH to RHEL 7 server
  • Install and configure Chef development kit
  • Configure knife to interact with your own Chef-Server
  • Configure knife to interact with your Hosted Chef-Server
  • Configure SSL based connection to Chef Server
  •  

    Module 5: Install and configure Chef-Workstation on Windows 7 (Hands on lab by students)

  • Install and configure Chef development kit
  • Setup environment variables
  • Configure knife to interact with your own Chef-server
  • Configure knife to interact with your Hosted Chef-server
  • Configure SSL based connection to chef server
  •  

    Module 6: Register a Chef-Node running Ubuntu server (Hands on lab by students)

  • Deploy a Ubuntu 14.04 server
  • Register the Ubuntu server under chef server management
  •  

    Assignment-03: Register a Node running RHEL server (Hands on lab by students)

  • Deploy a RHEL 7 server
  • Register the RHEL server under chef server management
  •  

    Module 7: Create a cookbook for Ubuntu server (Hands on lab by students)

  • Create a new cookbook for apache2 installation on Ubuntu server
  • Write package resource type in recipe to install apache2
  • Write service resource type in recipe to enable and restart apache2
  • Write file resource type in recipe to create new files on node with content
  • Create templates to be used in recipe – to push templates to node
  • Create index.html and log file to be used by recipe
  • Write cookbook_file resource type
  •  

    Module 8: Creating dependency cookbook for Ubuntu server (Hands on lab by students)

  • Create a new cookbook for OS update installation on Ubuntu server
  • Write recipe for update of Operating system
  • Edit metadata.rb file to include dependency for apache2 cookbook
  •  

    Module 9: Apply Apache2 cookbook Chef-Node (Ubuntu server) (Hands on lab by students)

  • Attach apache2 runlist to chef Ubuntu node
  • Run chef-client on the node
  • Test if you the recipe is applied and working as desired
  •  

    Assignment-04: Create a cookbook for RHEL 7 server (Hands on lab by students)

  • Create a new cookbook for HTTPD installation on RHEL 7
  • Write package resource type in recipe to install HTTPD
  • Write service resource type in recipe to enable and restart HTTPD
  • Write file resource type in recipe to create new files on node with content
  • Create templates to be used in recipe – to push templates to node
  • Create index.html and log file to be used by recipe
  • Write cookbook_file resource type
  •  

    Assignment-05: Creating dependency cookbook for RHEL-server (Hands on lab by students)

  • Create a new cookbook for OS update installation on RHEL server
  • Write recipe for update of Operating system
  • Edit metadata.rb file to include dependency for HTTPD cookbook
  •  

    Assignment-06: Apply HTTPD cookbo0k Chef-node(RHEL server) (Hands on lab by students)

  • Attach HTTPD runlist to chef RHEL Node
  • Run Chef-client on the node
  • Test if you the recipe is applied and working as desired
  •  

    Day 3 (Chef Environments, Roles and local recipe apply, Win 2016 web node)

    Chef Environments

  • What Are Environments And Why Do They Matter?
  • Creating And Configuring Environments ( Production and test 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
  •  

    Addons

  • Applying recipe locally on Ubuntu server
  • Chef Solo vs Chef Zero vs Chef Server
  •  

    Module 10: Register a Chef-Node Windows 2012 server (Hands on lab by students)

  • Deploy a Windows server 2012
  • Register the Windows server under chef server management
  •  

    Moduel 10.A Chef Supermarket

  • Chef Supermarket
  • Using A Private Supermarket
  •  

    Module 11: Create a cookbook for Windows 2012 server (Hands on lab by students)

  • Download a community cookbook for IIS (web-server) Installation on windows server 2012
  • Run cookbook on windows server
  • Validate web server is installed on windows 2012 server
  •  

    Day 4 (Advanced cookbook writing and Data bags)

    Module 12: Create a load balancer cookbook (Hands on lab by students)

  • Create a new cookbook for load balancer creation
  • Bootstrap 2 web server nodes
  • Bootstrap a load balancer node
  • Write package resource type in recipe
  • Write file resource type in recipe
  • Upload to cookbook to chef server
  • Attach runlist to a ubutnu node
  • Run chef-client and verify load balancer is created and able server traffic web sever
  •  

    Module 13: Create a cookbook for user and group for linux (Hands on lab by students)

  • Create a new cookbook for user and group
  • Write user resource type in recipe
  • Write file resource type in recipe
  • Write group resource type in recipe
  • Upload to cookbook to chef server
  • Attach runlist to a ubutnu node
  • Run chef-client and verify user and groups are created
  •  

    Module 14: Databags

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

    Module 15: Create a cookbook if conditional statements (Hands on lab by students)

  • Create a new cookbook for web server
  • Write three recipes
  • Recipe 1 : To install Apache on Ubuntu

    Recipe 2: To install httpd on RHEL

    Recipe 3 : If conditional statements to ensure runs right recipe based node OSfamily

  • Upload to cookbook to chef server
  • Attach runlist to a ubutnu node
  • Run chef-client and verify execution is correct
  •  

    Module 16: Nodes and Search

  • Node Object
  • Working With Ohai and Node Attributes
  • Knife Search
  •  

    Day 5 (Docker and Kitchen)

    Module 17: Understanding Docker

  • Module Introduction
  • What is Virtualization
  • What are Containers
  • Containerization and virtualization differences
  • Case study : 100 developer environment
  • Difference between win and linux containers
  • Docker ecosystem and components
  •  

    Module 18: Installing Docker

  • Module Introduction
  • Installing Docker on ubuntu 16.04 server
  • Install Docker on Windows 2016 server
  • Install Docker Toolbox on windows 7-8-10
  •  

    Module 19: Containers On Ubuntu Docker host

  • Module Introduction
  • Deploy ,Login, exit container
  • List,Start, Stop, restart containers
  • Where containers are stored
  • Working with container hostnames
  • Working on multiple containers
  • Container stats and inspect
  • Container networking
  • Deleting containers
  •  

    Module 20: Kitchen

  • Deploy a Ubuntu server
  • Deploy chef development kit
  • Deploy Docker
  • Create chef cookbook of apaache2
  • Write recipe in cookbook for apache2 install start and push index.html
  • Kitchen create with docker provisioner
  • Kitchen converge
  • Kitchen destroy
  • Kitchen test
  •  

 

Chef Advanced Training Schedules:

Sl. No.Training DatesLocationRegistration
128th January to 01st February 2019BangaloreClick here to register
228th January to 01st February 2019ChennaiClick here to register
328th January to 01st February 2019HyderabadClick here to register
Sl. No.Training DatesLocationRegistration
118th to 22nd February 2019BangaloreClick here to register
219th to 23rd February 2019ChennaiClick here to register
318th to 22nd February 2019HyderabadClick here to register
Sl. No.Training DatesLocationRegistration
111th to 15th March 2019 BangaloreClick here to register
225th to 29th March 2019ChennaiClick here to register
318th to 22nd March 2019HyderabadClick here to register