Chapter 7. Scripting with Runners
One of the design principles behind Unix is that programs should be small, doing only one thing, but doing it well. Execution modules follow this pattern, using functions that normally do only one thing, grouped with related functions into modules. When a function is executed, it performs that job, and then returns.
In Unix, these small programs can be combined together using a shell script, which ties them into a more powerful tool. Salt's runner system brings that element of scripting to Salt, using the same language that Salt itself is written in: Python. In this chapter, we will discuss:
- Connecting to Salt's local client
- Adding extra logic to execution modules
- Troubleshooting runners
Using Salt's local client
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.