Skip to content

Commit

Permalink
Add docs for the saltutil state module
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold committed May 7, 2019
1 parent 7758312 commit f11510c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/ref/states/all/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ state modules
rvm
salt_proxy
saltmod
saltutil
schedule
selinux
serverdensity_device
Expand Down
6 changes: 6 additions & 0 deletions doc/ref/states/all/salt.states.saltutil.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
====================
salt.states.saltutil
====================

.. automodule:: salt.states.saltutil
:members:
10 changes: 10 additions & 0 deletions doc/topics/development/modules/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ dynamic modules when states are run. To disable this behavior set
When dynamic modules are autoloaded via states, only the modules defined in the
same saltenvs as the states currently being run.

Also it is possible to use the explicit ``saltutil.sync_*`` :py:mod:`state functions <salt.states.saltutil>`
to sync the modules (previously it was necessary to use the ``module.run`` state):

.. code-block::yaml
synchronize_modules:
saltutil.sync_modules:
- refresh: True
Sync Via the saltutil Module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit f11510c

Please sign in to comment.