Chapter 6. The Highstate and Environments
In the preceding chapter, you learned how to use Jinja2 and pillar data to make your state file more flexible.
In this chapter, you will learn how to organize your states so that we can enforce the state of your infrastructure with just a single remote execution command.
You will learn the following:
- How to use topfiles in the state system to target state files to different minions
- How to use environments to further organize our state files
- How to use GitFS to store our state files in version control
The highstate
Until now, we have only been running a single state file at a time using state.sls
. However, this doesn't scale very well once we have many state files to manage our entire infrastructure. We want to ...
Get Learning SaltStack - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.