Salt comes with a rich set of execution modules and execution functions that allow you to administer many common tasks on your systems. All of these routines are simply Python. There isn’t any custom language; it’s just Python. The Salt libraries are exposed to these modules and functions, giving them access to the innards of the Salt system. Alongside the standard, built-in modules is the ability to add functionality with your own code.
The list of modules built in to Salt is extensive.
The best place to look is on the main documentation site.1
We have already been using the
pretty heavily in our examples up until now.
It would take an entire book to describe all of the modules in detail, so we are going to cherry-pick a few of the most heavily used
ones to give you a taste of what is available.
But we sincerely encourage you to examine the list
on the Salt web pages.
The list grows almost every day, with both new modules
and new functionality added to existing modules.
Whether you are an experienced user or brand new to Salt,
you are eventually going to need to see some documentation.
sys module offers a lot of insight into the modules and functions loaded. We have mentioned several times already that the modules are actually executed on the minions themselves. The minions may be in different states. They may have different dependent libraries loaded ...