Mastering SaltStack - Second Edition

Take charge of SaltStack to automate and configure your enterprise-grade environments

Mastering SaltStack - Second Edition

This ebook is included in a Mapt subscription
Joseph Hall

Take charge of SaltStack to automate and configure your enterprise-grade environments
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Code Files
Preview in Mapt

Book Details

ISBN 139781786467393
Paperback378 pages

Book Description

SaltStack is a powerful configuration management and automation suite designed to manage servers and tens of thousands of nodes. This book showcases Salt as a very powerful automation framework. We will review the fundamental concepts to get you in the right frame of mind, and then explore Salt in much greater depth. You will explore Salt SSH as a powerful tool and take Salt Cloud to the next level. Next, you’ll master using Salt services with ease in your infrastructure. You will discover methods and strategies to scale your infrastructure properly. You will also learn how to use Salt as a powerful monitoring tool.

By the end of this book, you will have learned troubleshooting tips and best practices to make the entire process of using Salt pain-free and easy.

Table of Contents

Chapter 1: Essentials Revisited
Executing commands remotely
SLS file trees
Using states for configuration management
The basics of grains, pillars, and templates
Summary
Chapter 2: Diving into Salt Internals
Understanding the Salt configuration
The renderer
Understanding the loader
Plunging into the state compiler
Summary
Chapter 3: Managing States
Handling multiple states
Spanning multiple environments
Understanding master_tops
Using Salt Stack Formulas on GitHub
Using the Salt Package Manager
Summary
Chapter 4: Exploring Salt SSH
Grappling with SSH
Using rosters
Understanding the salt-thin agent
Using the raw SSH mode
Summary
Chapter 5: Managing Tasks Asynchronously
Looking at the event system
Building reactors
Using Thorium
Using the queue system
Summary
Chapter 6: Taking Advantage of Salt Information Systems
Understanding pillar_roots
Using Salt's external pillars
Understanding SDB
Comparing pillars and SDB
Summary
Chapter 7: Taking Salt Cloud to the Next Level
Examining the Salt Cloud configuration
Using SDB with Salt Cloud
Building custom deploy scripts
Taking a look at cloud maps
Using reactors with Salt Cloud
Working with autoscale reactors
Summary
Chapter 8: Using Salt with REST
Looking at Salt's HTTP library
Understanding the Salt API
Working with webhooks
Summary
Chapter 9: Understanding the RAET and TCP Transports
Comparing RAET and ZeroMQ
Flow-based programming
Driving with RAET
Looking at asynchronous programming
Examining the TCP transport
Using the TCP transport
Summary
Chapter 10: Strategies for Scaling
All about syndication
High availability with multiple masters
Incorporating external data sources
Using the master API
Testing the load in the infrastructure
Summary
Chapter 11: Monitoring with Salt
Monitoring basics
Monitoring with returners
Using monitoring states
Working with beacons
Setting up alerts
Using aggregate data with Thorium
Summary
Chapter 12: Exploring Best Practices
Future-proofing your infrastructure
Setting up your directories
The SLS efficiency
Naming conventions
Templates and variables
Summary
Chapter 13: Troubleshooting Problems
What the...?
Using salt-call locally
Working with YAML
Asking the community for help
Summary

What You Will Learn

  • Automate tasks effectively, so that your infrastructure can run itself
  • Start building more complex concepts
  • Master user-level internals
  • Build scaling strategies
  • Explore monitoring strategies
  • Learn how to troubleshoot Salt and its subcomponents
  • Explore best practices for Salt

Authors

Table of Contents

Chapter 1: Essentials Revisited
Executing commands remotely
SLS file trees
Using states for configuration management
The basics of grains, pillars, and templates
Summary
Chapter 2: Diving into Salt Internals
Understanding the Salt configuration
The renderer
Understanding the loader
Plunging into the state compiler
Summary
Chapter 3: Managing States
Handling multiple states
Spanning multiple environments
Understanding master_tops
Using Salt Stack Formulas on GitHub
Using the Salt Package Manager
Summary
Chapter 4: Exploring Salt SSH
Grappling with SSH
Using rosters
Understanding the salt-thin agent
Using the raw SSH mode
Summary
Chapter 5: Managing Tasks Asynchronously
Looking at the event system
Building reactors
Using Thorium
Using the queue system
Summary
Chapter 6: Taking Advantage of Salt Information Systems
Understanding pillar_roots
Using Salt's external pillars
Understanding SDB
Comparing pillars and SDB
Summary
Chapter 7: Taking Salt Cloud to the Next Level
Examining the Salt Cloud configuration
Using SDB with Salt Cloud
Building custom deploy scripts
Taking a look at cloud maps
Using reactors with Salt Cloud
Working with autoscale reactors
Summary
Chapter 8: Using Salt with REST
Looking at Salt's HTTP library
Understanding the Salt API
Working with webhooks
Summary
Chapter 9: Understanding the RAET and TCP Transports
Comparing RAET and ZeroMQ
Flow-based programming
Driving with RAET
Looking at asynchronous programming
Examining the TCP transport
Using the TCP transport
Summary
Chapter 10: Strategies for Scaling
All about syndication
High availability with multiple masters
Incorporating external data sources
Using the master API
Testing the load in the infrastructure
Summary
Chapter 11: Monitoring with Salt
Monitoring basics
Monitoring with returners
Using monitoring states
Working with beacons
Setting up alerts
Using aggregate data with Thorium
Summary
Chapter 12: Exploring Best Practices
Future-proofing your infrastructure
Setting up your directories
The SLS efficiency
Naming conventions
Templates and variables
Summary
Chapter 13: Troubleshooting Problems
What the...?
Using salt-call locally
Working with YAML
Asking the community for help
Summary

Book Details

ISBN 139781786467393
Paperback378 pages
Read More

Read More Reviews