SaltStack Training


SaltStack is one of the best infrastructure management platforms available. It provides powerful tools for defining and enforcing the state of your infrastructure in a clear, concise way. With this Course learn how to use these tools for your own infrastructure by understanding the core pieces of Salt.


In this Course we will take you from the initial installation of Salt, through running their first commands, and then talk about extending Salt for individual use cases. From there you will explore the state system inside of Salt, learning to define the desired state of our infrastructure in such a way that Salt can enforce that state with a single command.

Finally, you will learn about some of the additional tools that salt provides, including salt-cloud, the reactor, and the event system. Well finish by exploring how to get involved with salt and what’s new in the salt community.


Finally, by the end of the book, you’ll be able to build a reliable, scalable, secure, high-performance infrastructure and fully utilize the power of cloud computing.


What You Will Learn

  • Install Salt on your servers
  • Run commands on all or some of your minions instantly from a central managing server
  • Write custom Salt modules to handle your infrastructure’s unique needs
  • Define the state of your infrastructure and use Salt to enforce that state.
  • Create platform-agnostic state definitions for greater flexibility and power
  • Manage virtual servers on public or private clouds using Salt Cloud
  • Use the event system in Salt to create a reactive and self-healing infrastructure



Course Outline


  1. Diving In – Our First Salt Commands

Introducing Salt

Installing Salt

Configuring Salt

A game of ping pong

Masterless Salt

  1. Controlling Your Minions with Remote Execution

The structure of a remote execution command

Command-line options

Targeting strings

Glob matching

Perl-compatible regular expression matching

List matching

Grain and pillar matching

Compound matching

Remote execution modules and functions

Adding users

Installing packages

Managing services

Monitoring minion states

Running arbitrary commands

  1. Execution Modules – Write Your Own Solution

Exploring the source

Cross-calling execution modules

Grains and the __virtual__ function

The__opts__ and __pillar__ functions

Reformatting return data

An advanced example

  1. Defining the State of Your Infrastructure

Our first state

The pieces of a state declaration

Expanding to encompass multiple pieces of state

Dependencies using requisites

The require requisite

The watch requisite

Other requisites

The _in requisites

  1. Expanding Our States with Jinja2 and Pillar

Adding a new minion


apache2 or httpd?

Defining secure minion-specific data in pillar

  1. The Highstate and Environments

The highstate


Expanding our base environment

Storing our states in Git with GitFS

  1. Using Salt Cloud to Manage Virtual Minions

Setting up Salt Cloud

Setting up Linode

Creating a cloud provider configuration

Creating cloud VM profiles

Creating and destroying machines

Managing groups of VMs with map files

  1. The Reactor and the Event System

The Salt event system

Reacting to events

  1. Security Best Practices in Salt

Securing Salt configuration

Key management

Preseeding the minion keys

Preseeding the master key

Verifying with key fingerprints

Firewall and network configuration

  1. How Can I Get Involved?

Contributing code using GitHub

Creating an account on GitHub

The project

Getting the code

Contributing a fix

Committing our changes

Pushing the changes and creating a pull request

Other ways to get involved

Call – +91 97899 68765 / 044 – 42645495

SaltStack Training Also available across India in Bangalore, Pune, Hyderabad, Mumbai, Kolkata, Ahmedabad, Delhi, Gurgon, Noida, Kochin, Tirvandram, Goa, Vizag, Mysore,Coimbatore, Madurai, Trichy, Guwahati

On-Demand Fast track SaltStack Training globally available also at Singapore, Dubai, Malaysia, London, San Jose, Beijing, Shenzhen, Shanghai, Ho Chi Minh City, Boston, Wuhan, San Francisco, Chongqing.