Book Image

Learning SaltStack - Second Edition

By : Colton Myers
Book Image

Learning SaltStack - Second Edition

By: Colton Myers

Overview of this book

SaltStack is one of the best infrastructure management platforms available. It provides powerful tools for defining and enforcing the state of your infrastructure in a clear, concise way. With this book learn how to use these tools for your own infrastructure by understanding the core pieces of Salt. In this book we will take you from the initial installation of Salt, through running their first commands, and then talk about extending Salt for individual use cases. From there you will explore the state system inside of Salt, learning to define the desired state of our infrastructure in such a way that Salt can enforce that state with a single command. Finally, you will learn about some of the additional tools that salt provides, including salt-cloud, the reactor, and the event system. We?ll finish by exploring how to get involved with salt and what'?s new in the salt community. Finally, by the end of the book, you'll be able to build a reliable, scalable, secure, high-performance infrastructure and fully utilize the power of cloud computing.
Table of Contents (17 chapters)
Learning SaltStack Second Edition
About the Author
About the Reviewer

Storing our states in Git with GitFS

Up to this point, we've been storing all of our Salt files in folders on the master. Those files are then served by the master to the minions at their request. This fileserver system is actually a pluggable interface.

This means that we can store our Salt data in any platform we choose, assuming a Salt fileserver module has been written for that platform.

There are fileserver modules available for a variety of systems, including Git, Mercurial, Amazon S3, and SVN. The only one we'll be exploring in this text is the Git fileserver, or GitFS.


Showing a full example of how to set up a Git repository, add and commit states, and run those states is out of the scope of this book, so we will only be touching upon basic configuration details. If GitFS is of interest to you, feel free to try it out. Otherwise, you can skip this section. There is an extensive tutorial on the advanced features of GitFS in the documentation at