Chapter 2. Writing Execution Modules

Execution modules form the backbone of the workload that Salt performs. They're also easy to write, and the techniques used in writing them form the foundation for writing every other type of Salt module. With a solid understanding of how execution modules work, the functionality of other module types will also be opened up.

In this chapter, we'll talk about:

  • The basics of writing Salt modules
  • Making use of Salt built-ins
  • Using good practices
  • Troubleshooting execution modules

Writing Salt modules

There are a few items that are consistent across all Salt modules. These pieces generally work the same way across all module types, though there are a handful of places where you can expect at least a little deviation. We'll ...

Get Extending SaltStack now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.