Video description
Chef is a popular configuration management tool used to quickly automate an entire fleet of machines. Chef allows you to define repeatable administration patterns in code tailored to your organization's specific needs. While typically deployed in conjunction with a Chef Server, Chef expert Mischa Taylor shows the numerous applications for Chef that do not require a Chef Server.
You will start using Chef to do useful infrastructure automation immediately for your organization. In this course, he shows you how to use Chef to fully automate the configuration of a fleet of Linux and/or macOS development machines and how to validate the configuration "test first" with InSpec. Designed for learners with basic command line interface skills who are new to Chef, the infrastructure automation skills acquired in this course will be completely applicable when you're ready to take on Chef Server.
- Discover the practical application of Chef without the complexity of needing to configure a Chef Server
- Understand all the key components of Chef, including its programming language
- Explore InSpec, the testing and compliance language included with Chef
- Master skills transferrable to learning enterprise-oriented Chef Server
- Learn how to use Chef to install Chef
Publisher resources
Table of contents
-
Introduction
- Introduction 00:01:52
- Why Chef? 00:02:03
- About The Author 00:01:42
-
Getting Started With The ChefDK
- What Is A Chef Development Workstation? 00:02:28
- Linux Setup - Installing The ChefDK And Git Source Control 00:06:23
- Linux Setup - Installing Atom 00:01:41
- Macos Setup - Installing The ChefDK 00:09:24
- Macos Setup - Installing Git 00:00:54
- Macos Setup - Installing Atom 00:00:59
-
Your First Chef Program
- Why Model Your Infrastructure As Code? 00:00:55
- Hello World 00:04:08
- Examining Hello.Rb 00:01:46
- Linting Code With Cookstyle 00:01:46
- Running Cookstyle Within Atom 00:01:56
- Automated Verification With Inspec 00:05:07
- Resilient Infrastructure With Chef 00:07:00
- Handling Uninstalls 00:07:52
- Wrapping Up 00:01:02
-
Getting Started With Test Kitchen
- Why Use Test Kitchen? 00:01:11
- Test Kitchen And Docker 00:00:58
- What If My Machine Can't Run Docker? 00:01:22
- What If I Want To Target Macos? 00:01:04
- Installing Docker On Linux 00:01:41
- Installing Docker On Macos 00:01:27
- Docker And Digitalocean 00:04:22
- Introducing Test Kitchen 00:07:16
- YAML Basics 00:09:12
- Validating YAML In Atom 00:02:02
- Test Kitchen Configuration File Format Overview 00:09:42
- Wrapping Up 00:01:22
-
How Chef Discovers Information About A System
- Why Does Chef Probe Machine Configuration? 00:01:11
- What Is A Node? 00:01:48
- Chef-Client In Production 00:06:08
- Your First Chef-Client Run 00:05:21
- Chef-Client Modes 00:01:44
- What Is Ohai? 00:03:52
- Wrapping Up 00:01:09
-
Your First Cookbook - Message Of The Day
- Why Automate Message Of The Day? 00:01:10
- Cookbooks 00:03:38
- Your First Chef Run In Test Kitchen 00:05:51
- Test First Coding - Part 1 00:15:44
- Test First Coding - Part 2 00:08:01
- Kitchen Test 00:01:36
- Why Files/Default? 00:01:33
- Introduction To Regular Expressions 00:06:51
- Cookbook Generators 00:10:53
- Generator Issues With Copyright Notices 00:04:15
- Wrapping Up 00:03:43
-
Managing Settings With Chef
- Why Does Chef Have An Attribute Store? 00:01:04
- Accessing And Storing Values 00:01:33
- Motd_Attributes Cookbook 00:07:04
- Automatic Values 00:00:59
- Setting Attributes In Recipes 00:02:58
- Setting Values In Attributes 00:03:18
- Basic Attribute Priority - Automatic Attributes Rule Them All 00:02:26
- Values In Recipes Override Attributes 00:01:09
- Last-In Wins At The Same Precedence Level 00:00:51
- What If I Have More Than One Attribute File? 00:04:33
- Composed Attributes 00:08:01
- Include_Recipe 00:02:58
- Override Precedence 00:04:54
- Attribute Driven Uninstalls 00:14:08
- Wrapping Up 00:03:42
-
Cookbook Authoring And Use
- Why Automate Web Server Configuration? 00:02:56
- Four Basic Resources 00:01:28
- Plan For Development 00:01:26
- Cookbook Documentation And Metadata Are Important 00:11:35
- Package Resource 00:06:17
- Actions Have Defaults 00:01:22
- Service Resource 00:03:41
- Add Content To The Website 00:04:47
- Verifying NGINX On Your Host 00:04:14
- Wrapping Up 00:02:27
-
Cookbook Versioning
- Why Versioning? 00:01:41
- Versioning The NGINX Cookbook And Communicating Change 00:06:38
- Introduction To Git 00:09:03
- Sharing Source On Github 00:06:43
- Cookbook Pipelines With Travis CI 00:16:13
- Managing NGINX.Conf - Breaking Change 00:17:10
- Zero Downtime - Enhancement 00:08:44
- Wrapping Up 00:03:00
-
Automated Validation With Inspec
- Why Automate Validation? 00:01:32
- Scanning A Docker Node With A Hardening Profile 00:07:43
- Scanning A Node With A Hardening Profile Via SSH 00:03:10
- Scanning A Local Machine With Inspec 00:02:14
- Formatting Modes 00:03:22
- Control Resource 00:03:40
- Describe Block 00:02:56
- Its Form 00:00:48
- Wrapping Up 00:01:32
-
Compliance Profile Authoring And Use
- Why Translate Compliance Policy Into Code? 00:02:21
- Your First Compliance Profile 00:01:03
- Creating The Initial Structure And Metadata 00:04:52
- Make Tests Fail As You Are Writing Them 00:03:20
- Introducing Match 00:02:00
- Variable Regular Expressions 00:03:29
- Adding Ruby Code To A Control 00:14:15
- Packaging Ruby Code In A Custom Matcher 00:09:53
- Wrapping Up 00:00:44
-
Compliance Profiles In Cookbooks
- Why Use Inspec With Test Kitchen? 00:01:16
- Remote Inspec Profiles 00:03:03
- Bringing Node Into Compliance Guided By Tests 00:02:35
- Wrapping Up 00:01:03
-
Capturing Machine Configurations With HashiCorp Packer
- Automating Config Of The OS Itself 00:02:50
- Host Versus Guest 00:00:53
- Host Setup 00:05:38
- Creating A Linux Desktop Virtual Machine 00:03:24
- Installing Ubuntu 16.04 Desktop 00:11:50
- Capturing The Linux Desktop VM With Packer 00:13:15
- Verifying The Linux Desktop VM 00:06:38
- Creating A Macos Virtual Machine 00:09:24
- Installing Macos 00:11:40
- Capturing The Macos VM With Packer 00:11:03
- Verifying The Macos VM 00:06:11
- Wrapping Up 00:01:10
-
Real-World Example: Manage Your Development Environment With Chef
- Why Use Chef To Chef Up Your Chef? 00:01:41
- Planning The Cookbooks 00:02:49
- Creating The Chef_Workstation Wrapper Cookbook 00:09:30
- Berkshelf And Dependency Management 00:08:22
- Introducing The Depends Statement And Semantic Versioning 00:08:44
- Performing Chef Runs Locally 00:11:40
- Git Cookbook 00:16:13
- Atom Cookbook 00:12:25
- ChefDK Cookbook 00:21:43
- Final Local Chef Run 00:03:11
- Wrapping Up 00:02:10
-
Troubleshooting Chef
- Troubleshooting Chef 00:00:48
- Introducing Chef-Shell 00:05:46
- Interactive Debugging with Chef-Shell 00:10:36
- Profiling 00:04:07
-
Where To Go Next
- Wrap Up 00:03:50
Product information
- Title: Learning Chef for Linux and macOS
- Author(s):
- Release date: April 2017
- Publisher(s): Infinite Skills
- ISBN: 9781491959435
You might also like
video
Learning Linux Security
In this Learning Linux Security training course, expert author Ric Messier will teach you how to …
book
Mastering Linux Security and Hardening
A comprehensive guide to mastering the art of preventing your Linux system from getting compromised. Key …
video
Linux Command Line
5 + Hours of Video Instruction Overview The Linux Command Line Interface (CLI) is a powerful …
book
Hands-On Enterprise Automation on Linux
Achieve enterprise automation in your Linux environment with this comprehensive guide Key Features Automate your Linux …