Chef Advanced
Program Overview:
This 5 -day course deploying Chef infrastructure and configure chef client and chef workstation on windows and linux servers
Program Duration: 5 Days
Prerequisite Skills:
Linux basic skills ( like working file and directories)
Who should attend?
Targeted for Cloud engineers, Developers ,operations engineer ,Centre of excellence team, window server administrators, Unix/Linux administrator, Storage admins, network administrators , Virtualization administrators
Day 1 :
Module 1: Chef – Overview
Day 2 :
Assignemnet-02 : Install and configure Chef-Workstation on RHEL ( Hands on lab by students)
Day 3 :
Chef Environments
Day 4 :
Module 12: Create a load balacner cookbook ( Hands on lab by students)
Day 5 :
Module 17 : Understanding Docker
This 5 -day course deploying Chef infrastructure and configure chef client and chef workstation on windows and linux servers
Program Duration: 5 Days
Prerequisite Skills:
Linux basic skills ( like working file and directories)
Who should attend?
Targeted for Cloud engineers, Developers ,operations engineer ,Centre of excellence team, window server administrators, Unix/Linux administrator, Storage admins, network administrators , Virtualization administrators
Day 1 :
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
- 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
- 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
- Create a user account on hosted chef server
- Create organization on hosted chef server
- Download chef-starter kit
- 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 :
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
- 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
- Deploy a Ubuntu 14.04 server
- Register the Ubuntu server under chef server management
- Deploy a RHEL 7 server
- Register the RHEL server under chef server management
- 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
- 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
- Attach apache2 runlist to chef Ubuntu node
- Run chef-client on the node
- Test if you the recipe is applied and working as desired
- 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
- 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
- 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
- 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
- What Are Roles?
- Creating A Web Server Role
- Building A Simple MySQL Cookbook For A Role
- Creating A DB Server Role
- vCreating A Base Role
- Applying recipe locally on Ubuntu server
- Chef Solo vs Chef Zero vs Chef Server
- Deploy a Windows server 2012
- Register the Windows server under chef server management
- Chef Supermarket
- Using A Private Supermarket
- 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 :
Module 12: Create a load balacner 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
- 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
- What Are Data Bags?
- Creating User And sudo Group Data Bags
- Building A Recipe To Deploy Local User Accounts From Data Bags
- 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
- Node Object
- Working With Ohai and Node Attributes
- knife Search
Day 5 :
Module 17 : Understanding Docker
- Module 17.1 - Module Introduction
- Module 17.2 - What is Virtualization
- Module 17.3 what are Containers
- Module 17.4 : Containerization and virtualization differences
- Module 17.5 : Case study : 100 developer environment
- Module 17.6 : difference between win and linux containers
- Module 17.7 : Docker ecosystem and components
- 18.1 : Module Introduction
- 18.2 - Installing Docker on ubuntu 16.04 server
- 18.3- Install Docker on Windows 2016 server
- 18.4 Install Docker Toolbox on windows 7-8-10
- 19.1 : Module Introduction
- 19.2 : Deploy ,Login, exit container
- 19.3: List,Start, Stop, restart containers
- 19.4 where containers are stored
- 19.5 : working with container hostnames
- 19.6 working on multiple containers
- 19.7 Container stats and inspect
- 19.8 Container networking
- 19.9 Deleting containers
-
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