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