Working With Saltstack

Working With Saltstack
=====

—–
Course Id: DEVO-SALT
Duration: 24 Hours

Overview
—–
* Infrastructure automation and management has become very popular recently
* This course provides a solid foundation in managing a large number of servers using Saltstack
* Participants learn how to automate provisioning and manage configuration
* They will also learn how to deploy services, and incorporate operational processes
* Saltstack basics including states, pillars, and grains, and event management with reactors and beacons is covered

Pre-Requisites
——-
* Using a text editor
* Working on the command line
* Basic system administration
* Package installation
* Service administration capabilities
* Shell Scripting

Training Objectives
——
All participants learn to:
* Install and configure Saltstack
* Setup a basic Salt master and minion infrastructure
* Run ad-hoc commands
* Work with states, pillars, and grains
* Integrate with Docker and Vagrant
* Network and troubleshoot
* Develop YAML and use the JINJA2 templating system

Course Structure
—–
* We provide more focus on hands-on in our technical courses (typically 80% hands-on/20% theory)
* Students get the capability to apply the material they learn to real-world problems

Materials Provided
—–
* All participants receive
* PDF of slides
* PDF of handson
* Access to instance with lab environment

Software Requirements
—–
Any of the following
* Any current internet browser
* vnc client
* rdp client

Hardware Requirements
—–
* Processor: 1.2 GHz+
* RAM: 512 MB+
* Disk space: 1 GB+
* Network Connection with low latency (<250ms) to Internet

## Daywise Course Outline
—–
## Day 1
—–
* Unit 1 : Infrastructure As Code
* Unit 2 : Introduction to Ansible
* Unit 3 : Deploying Ansible
* Unit 4 : Playbooks Basics

## Day 2
—–
* Unit 5 : Other Modules
* Unit 6 : Variables and Inclusions
* Unit 7 : Jinja2 Templates
* Unit 8 : Task Control

## Day 3
—–
* Unit 9 : Roles
* Unit 10 : Ansible Vault
* Unit 11 : Network Automation

## Detailed Outline
—–
Unit 1 : Infrastructure As Code
* Review Traditional scripting
* Why automate infrastructure?
* Infrastructure as Code

Unit 2 : Introduction to Saltstack
* Salt Overview
* Saltstack goals
* Architectural overview of remote execution
* Salt States
* Grains
* Pillar
* Jinja2 and the virtual mechanism

Unit 3 : Introduction to YAML
* Literals
* scalars
* Sequences
* mapping

Unit 4 : Installation of Salt
* Installation on Ubuntu
* Differences between salt-common, salt minion and salt master
* Installation on Amazon EC2

Unit 5 : Salt command line basics
* Anatomy of a salt command
* Output formatting in JSON
* The jq tool

Unit 6 : Targeting minions
* Globbing
* Regular expressions
* List matching
* IP matching
* Grains matching
* Compound matching

Unit 7 : States
* Package management
* Services
* Highstate

Unit 8 : Templating
* Jinja2 introduction
* For loop
* assignments
* escaping
* Templating with Jinja2 in Salt

Unit 9 : Pillar
* Secure storage
* VNC password deployment

Unit 10 : Miscellaneous
* Environments
* Salt-cloud
* Orchestration
* Integration with Docker

Scroll to top