Azure DevOps CI/CD: AzureRepos-Chef-AzurePipelines

Azure DevOps CI/CD: AzureRepos-Chef-AzurePipelines

Summary

From Introduction to Technical Deep Dive:
Git(AzureRepos), Chef, Code Testing, CI/CD(Azure Pipelines)

Microsoft Azure has created a fully integrated and very flexible tool called Azure DevOps, which includes a full git repo (Azure Repos) and a rebust CI/CD build and release pipeline tool (Azure Pipelines). This class assumes zero previous knowledge of git, Chef or CI/CD.  We'll teach your DevOps teams how to use git from the ground up. Then we'll dive into Chef from the very beginning, to align your teams on how how to use Chef with Code Linting and Integration Testing.  The Chef section will include git integration and will teach the latest best-practices from the Chef consulting team.  We'll learn the foundations of Continuous Integration using Azure Pipelines, and we'll create a complete build and release pipeline. The final result will be a fully automated end-to-end scripted pipeline that integrates git, Chef and CI/CD to build, test and deploy your Chef cookbooks and your application code on Azure DevOps.

Description

This instructor-led hands-on technical class will give DevOps Engineers, System Operations, and Code Developers the ability to:

  • Automate an entire End-To-End CI/CD (Continuous Integration/Continuous Deployment) Pipeline using Azure Repos, Chef & Azure Pipelines
  • Maintain code using git and Azure Repos
  • Create and automate the deployment of Chef cookbooks through Azure Pipelines CI/CD
  • Automate Code Linting with Cookstyle and Integration Testing with Inspec and Test Kitchen on Azure Pipelines
  • Send notifications automatically to update your team about a pipeline's status via Instant Messaging

This three-day course costs $1,495 and is offered as a virtual online class.  It is also available for private training classes either virtually or on-site.

Topics covered:

 

  1. Course Introduction
    • AzureRepos-Chef-AzurePipelines: A DevOps Pipeline
    • Course Purpose
    • Agenda
    • Introductions
    • Lab Environments

  2. Technology Overview
    • Git/Azure Repos - Source Control Management
    • Chef - Configuration Management
    • Cookstyle and Inspec - Cookbook Linting and Testing
    • Azure Pipelines - Continuous Integration
    • An End-To-End CI/CD Pipeline

  3. git
    • git Purpose and Use Cases
    • git Configuration
    • Getting Help with git
    • git Workflow
    • Quick look at Azure Repos
    • Other git providers
    • Installation and configuration
    • Finding help on git
    • Creating Local git Repositories
    • Basic Commands: add, commit, status, log
    • Comparing commits: git diff
    • Using a Repository: git push
    • Branching and Merging: git branch, git checkout
    • Using SSH keys with git private repositories
    • Full git Workflow

  4. Introduction to Chef
    • Resources, Recipes, Cookbooks & Chef Server
    • Chef Policyfiles
    • Chef Integration with Azure Repos
    • Code Linting
    • Integration Testing
      • Purpose and overview
      • Test Kitchen
        • Create, Converge, Verify, Destroy, Test
        • Managing the kitchen.yml file
        • View available tests
      • Writing integration tests for the Apache cookbook
    • Attributes and Ohai: Customizing Cookbooks
    • Chef Infra Server integration: Managing Nodes
    • Bootstrapping Chef-managed nodes

  5. Azure Pipelines
    • Purpose
    • CI/CD = Continuous Integration / Continuous Deployment
    • Projects and Jobs
    • YAML scripting - CI/CD as Code
    • Managing credentials and secret files
    • Integrating with Source Control Management: Azure Repos
    • Triggers: Scheduled Polling and Webhooks
    • Automated cookbook linting: Foodcritic and Cookstyle
    • Automated cookbook testing with Test Kitchen
    • Notifications: Slack
    • Requiring human input and approval
    • Azure Pipelines Integration with Chef Server
    • Continuous Deployment of Chef cookbooks with Azure PipelinesChef Policyfiles

  6. Finally, we’ll put everything together into a complete End-To-End Pipeline
    • Write a Chef cookbook
    • Write Inspec tests for our cookbook
    • Push the cookbook to a branch within Azure Repos
    • Upon receiving the cookbook, Azure Repos will automatically trigger Azure Pipelines to download the cookbook
    • Azure Pipelines will automatically initiate testing the cookbook using Test Kitchen
    • If anything fails, Azure Pipelines will send notifications to the class participant who wrote the code so it can be fixed and tested again
    • Once everything passes all tests: Azure Pipelines will upload the cookbook to the Chef Server.
    • Azure Pipelines will automatically trigger the Chef managed webservers, running on Linux nodes in Azure, to converge, download the cookbooks from the Chef Server and deploy the cookbooks
    • Azure Pipelines will send notifications over Slack regarding failures or the successful deployment of the cookbook

 

Workstation Requirements

For virtual classes, you should have a computer (on which you have root or Administrator access), a microphone, a headset and an external monitor.

For in-person classes, only a Wi-Fi enabled laptop (on which you have root or Administrator access) is needed.

 

The following operating systems have been tested as workstation systems with the hands on exercises:

Ubuntu 10.04, 12.04

Mac OS X 10.7.3+

Windows 7+

Other platforms and platform versions may work without modification. Due to time constraints we will not be able to troubleshoot issues with unlisted platforms.

 

Attendees should install the following required software before the workshop starts and verify the required access:

  • Access to portal.azure.com virtual machines, on ports 22, 80, 3389, 5985, 5986
  • Access to dev.azure.com/*
  • Access to *.chef.io/ 

 

Student Requirements:

You need familiarity and comfort with the following:

  • Writing code (of just about any flavor) in a text editor
  • Working on the command line
  • Basic system administration – installing packages, configuring those packages, starting a service

 

This course is delivered virtually online and you can attend from any location on the planet with a solid internet connection. 

 

For our Private classes (where an instructor teaches your group exlusively, with no one else in the class) contact us at training@chef.io

 

 

Duration

3 Days

Upcoming Classes

Online

Instructor-led online training

Location Dec 2019 Jan 2020 Feb 2020 Mar 2020 Apr 2020 May 2020
US Central - Online Jan 22 – Jan 24
Mar 2 – Mar 4

Onsite Training

For groups of three or more

Request Quote

Public Training

US Central - Online

  • Confirmed
    9:00 AM - 5:00 PM CST
    $ 1495.00 USD $ 1345.00 USD before Wednesday, January 8, 2020 5:00 PM CST.
  • Confirmed
    9:00 AM - 5:00 PM CST
    $ 1495.00 USD $ 1345.00 USD before Monday, February 17, 2020 5:00 PM CST.

Classes marked with Confirmed are guaranteed to run. Sign up now while there is still space available!


Don't see a date that works for you?

Request Class

Customer Comments

This was the best course I've ever taken. The instructor was just GREAT!

- IBM

I will recommend this class to my organization as one of the more complete solutions to on boarding new Chef users.

- The MITRE Corporation

Even though I've been using Chef for three years, I found this class immensely useful; not only did it allow me to examine and compare my current practices to those presented in the training, but I learned several new techniques for using Chef tools.

- Texas Comptroller of Public Accounts

The lab setups are excellent and allow the class to focus on the training objectives. It was a great way to get hands on experience with Compliance in one day.

- CVS Health

It was great.

- Rakuten Inc.

I was sad to have the training end! The personalized attention from the instructor was priceless. Chef made sense and I LOVED it! Every question and problem were solved and explained. Truly craft masters of Chef, take this and be ready to be amazed. I'm applying what I learned the next week after the course. Thank you CHEF!

- Trace3

Just Great!

- IBM

I don't usually like online training, but this training was great and Eric is really good, well-organized, and in control. The way he engaged each participants is amazing, and how he troubleshoot issues.

- BlackBerry Limited