Custom Salt execution, state, and other modules can be distributed to Salt minions using the Salt file server.
Under the root of any environment defined via the
option on the master server directories corresponding to the type of module can
The directories are prepended with an underscore:
The contents of these directories need to be synced over to the minions after Python modules have been created in them. There are a number of ways to sync the modules.
The minion configuration contains an option
which defaults to
True. This option makes the state system refresh all
dynamic modules when states are run. To disable this behavior set
False in the minion config.
When dynamic modules are autoloaded via states, modules only pertinent to the environments matched in the master's top file are downloaded.
This is important to remember, because modules can be manually loaded from any specific environment that environment specific modules will be loaded when a state run is executed.