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

Spanning multiple environments


The idea behind Salt environments is to allow formulas to be distributed to multiple types of minions while still restricting them from running in areas where they are not appropriate. For instance, if you use LDAP as an authentication mechanism, it probably makes sense to have it available in every environment. However, even if you're using Git for revision control, you probably only want it in your development environment, as other environments are often deployed via some other mechanism.

Using the base environment

By default, all minions will behave as if they are in the base environment, even if you have no environments defined. By convention, most Salt deployments make use of the base environment anyway, so it's not a bad idea to follow suit.

The base environment is designed to provide formulas that will be useful or necessary across all minions. Decide carefully which formulas to add to base: most formulas will have at least one environment that they do...