Skip to content

Commit aa20365

Browse files
authored
Merge pull request #53338 from AstraLuma/patch-3
[master]Modular Systems: Document saltenvs and modules
2 parents 41d69cf + 4028520 commit aa20365

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

doc/topics/development/modules/index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ prepended by underscore, such as:
5555
Modules must be synced before they can be used. This can happen a few ways,
5656
discussed below.
5757

58+
5859
.. note::
5960
Using saltenvs besides ``base`` may not work in all contexts.
6061

62+
6163
Sync Via States
6264
~~~~~~~~~~~~~~~
6365

@@ -67,7 +69,7 @@ dynamic modules when states are run. To disable this behavior set
6769
:conf_minion:`autoload_dynamic_modules` to ``False`` in the minion config.
6870

6971
When dynamic modules are autoloaded via states, only the modules defined in the
70-
same saltenvs as the states currently being run.
72+
same saltenv as the states currently being run are synced.
7173

7274
Sync Via the saltutil Module
7375
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -78,6 +80,8 @@ or specific dynamic modules. The ``saltutil.sync_*``
7880
:py:mod:`runner functions <salt.runners.saltutil>` can be used to sync modules
7981
to minions and the master, respectively.
8082

83+
If saltenv environments are used (through the :ref:`top file <states-top>`, the :conf_minion:`environment` option of the minion configuration file, or as an argument on the command line) modules will be synced from the applied environments.
84+
8185

8286
The extmods Directory
8387
---------------------

0 commit comments

Comments
 (0)