Learning Path: Automation with Ansible, Puppet, and Salt
4.2 (90 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,285 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Learning Path: Automation with Ansible, Puppet, and Salt to your Wishlist.

Add to Wishlist

Learning Path: Automation with Ansible, Puppet, and Salt

Use popular automation tools for a scalable, reliable, and secure IT environment.
Best Seller
4.2 (90 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,285 students enrolled
Created by Packt Publishing
Last updated 6/2017
English
Current price: $10 Original price: $200 Discount: 95% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 14 hours on-demand video
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Configure and manage your infrastructure using Ansible Playbooks
  • Create task blocks and choose the right Ansible Strategy for the job
  • Understand the nuances of Ansible 2 and its new features
  • Write efficient, reusable, and modularized Puppet code
  • Write extensive tests for the code and run automated builds using Jenkins Integration
  • Create a pipeline for effective code management
  • Understand Salt’s state system and write and manage complex states
  • Use and react to real-time events across an infrastructure
View Curriculum
Requirements
  • Basic idea of system administration and Linux systems
  • Workstation with Vagrant and VirtualBox installed
Description

It is no surprise that automation and orchestration make life very easy, be it a small organization or a large-scale industry that houses hundreds of servers. IT automation is essentially the ability to orchestrate and integrate tools, people, and processes through a certain workflow. Automation with Ansible, Puppet, and Salt is a Learning Path that looks at the most popular tools for automation, their advantages, and how you can use each of these tools to automate your IT infrastructure effectively.

Packt’s Video Learning Paths are a series of individual video products put together in a logical and stepwise manner such that each video builds on the skills learned in the video before it.

In this one, we'll cover the why and how of Ansible, Puppet, and Salt, in a step-by-step, progressive manner. Initially, we focus on Ansible. You will learn how to manage environments and implement strategies in Ansible and be introduced to Ansible Galaxy and Tower, which are Ansible's enterprise tooling for supporting large-scale infrastructure. We then move on to learning Puppet. Puppet is a configuration management tool that allows you to automate all your IT configurations. Using Puppet you can control each Puppet agent in a network. You will learn how to do so by first understanding the Puppet ecosystem and then detailed topics such as configuration and management of Puppet servers, environments, module repositories, and reusable modules. With Salt too, we use a similar approach. We start from the basics, such as installing, configuring, deploying, and managing a web application to advanced concepts like Docker containers across multiple systems behind a HAProxy load balancer.

By the end of this Learning Path, you will be able to build and manage your infrastructure and fully utilize its potential.

This course is authored by some of the best instructors in this field:

David Cohen worked as a system administrator, platform engineer, DevOps engineer, and software developer in everything from small businesses to growing companies (100+ employees) and large tech/engineering firms (10,000+ employees). He owns a YouTube channel, where he has helped tens of thousands of people learn the basics (and not-so-basics) of system administration, DevOps, and software engineering.

Anirban Saha is an infrastructure professional with more than six and half years' experience in infrastructure management at various industries and organizations ranging from early startups to corporate environments. He has worked extensively with configuration management and automation tools including Puppet, Chef, Ansible, Saltstack, and Terraform, to name a few.

Seth House is an active member of the Salt community for the past five years and has worked at SaltStack for four years. He wrote the salt-api and also contributed to many core parts of Salt. He has collaborated with the Salt community and started the Salt Formulas organization.

Who is the target audience?
  • This course is ideal for system administration and IT professionals who are looking at automating their organization’s infrastructure.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
95 Lectures
14:00:44
+
Ansible 2 for Beginners
33 Lectures 04:21:36
This video provides an overview of the entire course.
Preview 04:25

In this section, you'll learn about the most popular uses of the Ansible automation tool. It's a tool that you can use to manage the full life cycle of your infrastructure.
What Is Ansible?
03:29

Ansible is more than just configuration management, like many other tools in this space. It's also much more lightweight than competitors like Puppet and Chef—to configure a server, all you need is an SSH login and Python 2 installed.
Why Ansible?
03:09

We'll use a simple example: installing and configuring an nginx server and a simple static HTML website, first using bash and then using Ansible.
Demonstration – From Bash to Ansible
19:28

This video gives you an overview of how the course is structured. The focus is on practical, real-world applications, since that prepares you for real-life application of this knowledge.
Course Layout
02:54

In this video, we'll cover the basic Ansible vocabulary. You'll have many basic questions answered.

Basic Ansible Vocabulary
02:53

In this video, you'll learn about the new features and improvements that Ansible 2.0 offers.
New Features in Ansible 2.0
03:30

In this video, we'll set up an environment that you can use to safely practice everything you see in this course.

Preview 03:02

In this video, you'll learn the three most popular ways to install Ansible, and decide which one is right for you.
Installing Ansible
05:48

In this video, we'll cover how to build Ansible directly from its repository. This method is useful if you absolutely need a bleeding-edge feature, or if you're interested in contributing to the Ansible source code.
Bleeding-Edge Ansible Installation
08:30

In this video you'll learn how to simulate test machines with LXC (Linux Containers). LXC is a lightweight precursor to Docker which will let us configure some test hosts that we can run Ansible against.
Setting up our Test Environment
07:33

Ansible only requires two things: Python 2 and a running SSH service. In this video, I'll show you the 10-second process that prepares a brand-new host for Ansible.
Target Machine Requirements
03:07

In this video, you'll learn where Ansible looks for its primary configuration file, and the different ways in which you can approach configuring Ansible.
Preview 05:16

How does Ansible know which hosts to configure? The Ansible Hosts (Inventory) file!
Ansible Hosts Inventory File
05:19

Ad-Hoc Commands are simple one-off commands that perform a single action on a target host. These simple replacements for small bash scripts or 'for' loops are run from the command-line, and work well for cases where a full-featured Playbook is overkill. You'll see Ad-Hoc commands for doing several things across one server, or many servers at once
Ad-Hoc Commands
07:54

Playbooks are the Ansible feature you'll be working with on most projects. In this video, you'll learn the three components that make a Playbook what it is: tasks, templates, and handlers.
Introduction top playbooks
19:40

In this video, you'll learn how to structure your playbooks for maximum readability, predictability, and flexibility. You'll learn about Roles, and how they can help you reuse code. Note: For this course, we're not using every available Playbook feature, because it can make things excessively complex. We're focusing on the practical 90% of features that you'll be using every day.
Playbook Structure
11:16

In this video, you'll learn what Ansible modules are and how they help you get things done.
Introduction to Modules
06:01

In this video, you'll learn about some of the most popular (and useful!) Ansible modules. At the end of this video, you'll have a list of modules to dig into, which you can use to manage

Common Modules
11:29

In this video, you'll learn about how Ansible deals with Variables and Facts:
Variables and Facts
17:55

In this video, you'll see a real-life web application deployment. We'll be setting up Mattermost, an open-source alternative to the popular Slack team-chat application.
Preview 12:02

This video reviews everything we just saw in the application deployment. After watching this video, you'll start to have an intuitive 'real-world' grasp of how a playbook works.
Real-Life Playbook Walkthrough
14:43

While developing Ansible automation, you'll be doing a lot of troubleshooting as part of the process. In this video, I'll show you the most common Ansible features that you'll use for debugging, along with some of the most common Ansible errors you'll encounter.

Preview 13:06

In this video, you'll learn about the control flow that you can use in your Tasks and Plays. At the end of this video, you'll be comfortable with Ansible iteration constructs like:

Conditionals and Control Flow
04:52

In addition to control flow in your YAML files, we can also introduce control flow for our file content in your Jinja2 templates.
Templating, Control Flow, and Iteration in Jinja2
07:37

We have been using YAML to write your Playbooks, Plays, Tasks, and Handlers. Now it's time to dig in for a moment and learn some of the rules you need to keep in mind when working with this markup language.

YAML Basics
04:37

Task Blocks are one of the useful new features in Ansible 2.0. They allow you to group related tasks together, so you can tie control-flow to larger chunks of actions. This is something that comes in handy for larger actions which are made up of several tasks.
Ansible Blocks
03:59

Ansible has two built-in execution strategies that affect how it applies tasks to hosts. Knowing whether you want to use the linear (default) strategy or the free strategy can make the difference between completing a deployment in minutes or hours

Performance and Execution Strategies
08:10

Ansible Galaxy allows you to leverage open-source roles that other people in the Ansible community have created. It can be useful for studying code that others have written, or for quickly getting some functionality that you need without having to write it from scratch.

Ansible Galaxy
04:58

In this video, I'll cover some of the basic security features. This is essentially a quick list of "best practices" and "things to watch out for." Using Ansible for provisioning, deployment, configuration management, and orchestration does not absolve you of managing the security of your systems...you'll still have to invest thought and planning into how you do this.
Security
04:13

Ansible can be used to provision services on all major cloud providers: Amazon Web Services (AWS), OpenStack, Google Cloud, Microsoft Azure, and more. There are also Ansible modules for on-premise virtualization and cloud solutions, which makes it really easy to get started.
Preview 03:01

In this demonstration, you'll see how the Mattermost Deployment playbook was ported to Amazon AWS.
Ansible AWS Demo
25:10

This video will give you a quick taste of Ansible's commercial solution: Ansible Tower. This is a web application wrapper around the core open-source Ansible toolset
Ansible Tower
02:30
+
Puppet Essentials for Beginners
23 Lectures 03:25:00
This video provides an overview of the entire title.
Preview 04:45

Installation of the required setup and working environment
Installing and Setting Up the Working Environment
11:21

To deal with large infrastructures, manage and deploy them, configuration management has become the industry wide accepted solution. We will look at problems addressed by configuration management and the advantages.
Preview 04:57

Before diving deep into learning a technology, it is important that we make ourselves aware of the unique terminologies of the concerned tool. We learn about the most important components and terminologies of Puppet.

Puppet Components and Terminologies
04:58

To learn about how to manage infrastructure with a tool, a deep understanding of the workflow of the tool is extremely necessary. We learn about the relation of the Puppet components with each other and how they work together to achieve a managed infrastructure.
Understanding the Puppet Run Cycle
03:48

To get started with a tool, it is essential to be able to obtain the software and know how to install them on the system. We learn about installing the Puppet components and explore the directory structure of Puppet to know what lies where.
Installing the Puppet Components
06:06

After obtaining the required tools, the procedure to make the components work with each other is necessary to master. We learn to create basic content on the Puppet server and make the agents get them after successful authentication.
Puppet in Action
08:29

To use a running Puppet infrastructure, it is important to be able to add meaningful content to it so that agents are able to get more and more functionalities. We learn about modules and their structure. We also learn to add features to modules to make them applicable to a diverse infrastructure.
Overview of the Puppet Language
12:47

While default settings are enough for a small infrastructure, often parameters need to be tweaked to get optimal performance as infrastructures scale. We learn to change parameters to suit our needs and manage certificates on the Puppet server.

Preview 09:42

With an ever growing community, there has been a trend in creating community modules which can be used by users and organizations without having to write new modules themselves. We learn about community modules, where to find them and how to contribute.
Introduction to Community Modules
07:15

When using community modules or a module with loads of dependent modules or classes, all the dependencies need to be mentioned in the module specifically and need to be present on the system during various phases such as Puppet agent runs or testing. We learn to manage these modules.
Managing Module Dependencies and librarian-puppet
05:21

Keeping all modules in a single location has its own disadvantages such as dangers of breaking the module tree when trying to test a new module or a change. Environments can be configured to address this problem. We learn to configure and manage environments.
Managing Environments with r10k
14:08

As the functionalities keep getting added to Puppet agent nodes, the list of modules to be included in the node definitions keep increasing. To address this problem and keep node definitions clean and efficient, the concept of roles and profiles is applied
Understanding roles and Profiles
10:04

Writing a module has become a complex process as new features and workflows are added each day. With ever increasing list of directories and files in a module, it is necessary that we know the function of each of them. We learn to create and manage a module.
Writing and Managing a Module
12:36

One of the recent attempts to create generic modules includes steps to separate logic and data. Hiera enables users to keep data separated from module logic and reuse modules by just changing Hiera data.
Understanding and Using Hiera
13:37

Although not seen as mandatory or crucial in module development, test driven development should be adopted and followed by all organizations managing infrastructure using Puppet. We get an overview of Puppet module testing.
Preview 03:58

When writing long and complex modules, it is easy to miss characters or keywords here and there and to not be able to follow style guides. Syntax tests make it easy for developers to find out problems in code files and conform to the standard development style guide.
Testing Puppet Syntax with puppet-lint
08:40

The methodology of writing tests first and then writing code to fulfill the tests is widely practiced in the industry for almost all programming languages. Puppet development is no exception. Using rspec-puppet, we learn to write unit tests for Puppet modules.
Writing Unit Tests with rspec-puppet
16:00

Once modules are written, it should be tested on a running system and the configured components should be verified before the modules can be pushed to production. The Beaker testing tool helps us to create acceptance tests using Serverspec for Puppet modules.
Writing Tests with Beaker Using Serverspec
09:38

To test modules on running systems and verify configured components, there are more than one tool and we have options to choose from. Test-kitchen is another excellent tool which helps us to run acceptance tests using Serverspec.
Writing Tests with test-kitchen Using Serverspec
09:48

Being able to publish modules in an automated manner is as important as being able to write and test them. Puppet-blacksmith helps us to create releases and publish modules to Puppet Forge in an automated manner.

Publishing Modules to Puppet Forge with puppet-blacksmith
06:15

Being able to run test one by one is fun and easy to do when developing modules. However, to be able to produce production code continuously and efficiently, being able to test the code in an automated fashion is important and can be achieved by a tool such as Jenkins. We learn to use Jenkins to run Puppet test suites.
Configuring and Using Jenkins to Run the Test Suites
07:12

After being able to run test suites in Jenkins, controlling the code management workflow is the next important task in the process. Creating a workflow for developers to be able to push new code to production without breaking existing infrastructure is what we will learn here.
Using Jenkins to Create a Code Management Workflow
13:35
+
Learning Salt
39 Lectures 06:14:08

This video provides an overview of the entire course.

Preview 02:01

The aim of this video is to learn how Salt approaches system management and why it uses the technology that it does.
The Philosophy of Salt
02:59

The aim of this video is to learn about how Salt utilizes a technology stack to meet design goals and what that stack is.
How Salt Communicates?
07:14

The aim of this video is to learn to install Salt from the official SaltStack repository.
Installing Salt
05:18

Configuring Salt
09:54

The aim of this video is to learn how Salt's encryption layer works.

Key Acceptance and Encryption
09:10

We will explore how to granularly target subsets of an infrastructure.
Preview 10:20

We will talk about execution modules which is a large library of common tasks to query or change a system.
Execution Module Basics
14:05

Common Execution Modules
16:26

Call from Master or Minions
10:17

We will explore the intricacies of Salt's State system.
Preview 06:05

Our First State
14:21

Dissect State Functions
11:35

We will trace the flow of a State run from the master, to a minion, and then back to the master.
Execution Flow of a State Run
07:12

Debugging States
05:16

The aim of this video is to explore Salt states as data structure generators.

Preview 05:26

The aim of this video is to take a look at what exactly are re-usable states.
How to Write Reusable States?
12:35

The aim of this video is to discuss the best practices for writing states in a clean and maintainable way.
How to Write Maintainable States?
17:38

The aim of this video is to know about the pitfalls of Jinja and YAML as well as a couple of tips.

YAML and Jinja Best Practices and Gotchas
05:36

The aim of this video is to use Jinja and YAML to create minion specific data.
Configuring States Using Pillar
20:11

The aim of this video is to know more about Salt formulas and how to use them.
Learning Salt Formulas
09:10

The aim of this video is to learn some tips on how to debug Jinja.
Debugging Jinja
05:35

With this video, explore complex multi-file state trees.

Preview 09:48

The aim of this video is to discuss ordering strategies to get the state tree to execute in the desired order.

Defining, Enforcing, and Debugging Execution Orders
16:14

The aim of this video is to learn about the requisites that can change the order of a state run dynamically.
Conditional and Branching Logic During a State Run
13:17

The aim of this video is to lean about debugging strategies for large state trees.
Debugging a State Run
09:54

The aim of this video is to explore how to share data between minions.

Sharing Data between Systems with Salt Mine
06:43

With this video, get acquainted on how to execute state runs on a master.
Using Salt Orchestrate to Manage Complex State Runs
09:00

The aim of this video is to get to know about salt's event basics.
Preview 05:19

The aim of this video is to know about the custom events.

Sending Custom Events
06:22

The aim of this video is to react to events and trigger actions.
Listening to Events and Trigger Actions with Salt's Reactor
12:04

The aim of this video is to know about Signal salt from third- party tools using Salt events.

Integrating Salt with External Tools Using Events
05:33

The aim of this video is to use Beacon modules to automatically create Salt events in response to system events.
Sending Events Using Beacon Modules
09:45

The aim of this video is to Debug the Salt Reactor.
How to Debug the Reactor and Best Practices?
04:53

The aim of this video is to learn how to install and configure Salt's REST API.
Preview 13:34

The aim of this video is to explore rest_cherrypy endpoints and features.
Exploring rest_cherrypy
14:47

The aim of this video is to Access salt's event bus and shortcuts for common tasks.
More rest_cherrypy Features
15:05

The aim of this video is to integrate Salt with external services and systems by exposing webhooks.

Using Salt-API to Integrate with External Systems
10:22

The aim of this video is to wrap up the video series and get familiar on the general resources for further study.
Wrapping Up and Further Scope
03:04
About the Instructor
Packt Publishing
3.9 Average rating
8,175 Reviews
58,763 Students
686 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.