Book Image

Mastering SaltStack - Second Edition

By : Joseph Hall
Book Image

Mastering SaltStack - Second Edition

By: Joseph Hall

Overview of this book

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 (20 chapters)
Mastering SaltStack Second Edition
About the Author
About the Reviewer

Using the master API

The master API has a somewhat confusing name for users that are used to traditional Unix terminology. Because the master is what steers a Salt infrastructure, the API that is used to configure it is called the wheel system. To put it clearly, Salt's wheel system bears no relation or resemblance to the wheel group found in many Unix and Linux distributions.

Like most of Salt, the wheel system is pluggable. However, while a few modules do exist, most of them will never be used by most end users. For our purposes, we'll focus on the ones that are used.

The Salt keys

The part of the wheel system that is most commonly seen by administrators is key management. When keys are accepted, rejected, or deleted, that action is usually performed by the wheel system. The key module doesn't actually do much: it creates keys when necessary, moves them between directories as requested, and fires events along the event bus when doing so.


The config module is used to manage the...