Chapter 4. Wrapping States Around Execution Modules
Now that we've covered execution modules and configuration modules, it's time to talk about configuration management. The idea behind a state module is to use execution modules as a mechanism for bringing a resource to a certain state: a package is in an installed state, a service is in a running state, a file's contents match the state defined on the Master. In this chapter, we'll discuss:
- The concepts behind a basic state module layout
- Deciding how far to take each state
- Troubleshooting state modules
Forming a state module
State modules are more structured than most other kinds of modules, but as you'll soon see, that actually makes them easier to write.
Determining state
There is a set of operations ...
Get Extending SaltStack 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.