Book Image

Mastering SaltStack - Second Edition

Book Image

Mastering SaltStack - Second Edition

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
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Preface

What the...?


Things go wrong. And you don't always notice when they do, at least not at first. And when you do, your first response is likely to sound like, "Hey, that's weird!"

Before you can really start troubleshooting a problem, it always helps to build some context around it, so that you know where to look for the solution. It has been said that real programmers cook popcorn on the heat of their CPU. They can tell which jobs are running based on the rate of the popping. You don't need to get so involved as that to work around problems in Salt, but a little knowledge will go a long way.

Addressing the problem source

A common mistake in any troubleshooting situation is to address the symptoms when they occur, with little regard to what's actually causing the problem. For example, if a roof is leaking during a rainstorm, the only step that some people will take is to leave out containers under the leak to catch the water, and empty them when they get full. When the sun comes out, far too...