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 ...

Get Mastering 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.