mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #3572 from archtaku/docs
Replace hard-coded links w/relative ":mod:" links
This commit is contained in:
commit
d165d9619d
@ -15,8 +15,10 @@ Salt modules are amazingly simple to write. Just write a regular Python module
|
||||
or a regular `Cython`_ module and place it in the ``salt/modules`` directory.
|
||||
You can also place them in a directory called ``_modules/`` within the
|
||||
:conf_master:`file_roots` specified by the master config file, and they will be
|
||||
synced to the minions when `state.highstate`_ is run, or by executing the
|
||||
`saltutil.sync_modules`_ or `saltutil.sync_all`_ functions.
|
||||
synced to the minions when :mod:`state.highstate
|
||||
<salt.modules.state.highstate>` is run, or by executing the
|
||||
:mod:`saltutil.sync_modules <salt.modules.saltutil.sync_modules>` or
|
||||
:mod:`saltutil.sync_all <salt.modules.saltutil.sync_all>` functions.
|
||||
|
||||
Since Salt modules are just Python/Cython modules, there are no restraints on
|
||||
what you can put inside of a Salt module. If a Salt module has errors and
|
||||
@ -29,9 +31,6 @@ compilation of the Cython module is automatic and happens when the minion
|
||||
starts, so only the ``*.pyx`` file is required.
|
||||
|
||||
.. _`Cython`: http://cython.org/
|
||||
.. _`state.highstate`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.highstate
|
||||
.. _`saltutil.sync_modules`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_modules
|
||||
.. _`saltutil.sync_all`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_all
|
||||
|
||||
Cross Calling Modules
|
||||
=====================
|
||||
|
@ -37,12 +37,10 @@ Using Custom State Modules
|
||||
Place your custom state modules inside a ``_states`` directory within the
|
||||
:conf_master:`file_roots` specified by the master config file. These custom
|
||||
state modules can then be distributed in a number of ways. Custom state modules
|
||||
are distributed when `state.highstate`_ is run, or by executing the
|
||||
`saltutil.sync_states`_ or `saltutil.sync_all`_ functions.
|
||||
|
||||
.. _`state.highstate`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.highstate
|
||||
.. _`saltutil.sync_states`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_states
|
||||
.. _`saltutil.sync_all`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_all
|
||||
are distributed when :mod:`state.highstate <salt.modules.state.highstate>` is
|
||||
run, or by executing the :mod:`saltutil.sync_states
|
||||
<salt.modules.saltutil.sync_states>` or :mod:`saltutil.sync_all
|
||||
<salt.modules.saltutil.sync_all>` functions.
|
||||
|
||||
|
||||
Cross Calling Modules
|
||||
|
@ -61,17 +61,16 @@ names of the grains and the values are the values.
|
||||
|
||||
Custom grains should be placed in a ``_grains`` directory located under the
|
||||
:conf_master:`file_roots` specified by the master config file. They will be
|
||||
distributed to the minions when `state.highstate`_ is run, or by executing the
|
||||
`saltutil.sync_grains`_ or `saltutil.sync_all`_ functions.
|
||||
distributed to the minions when :mod:`state.highstate
|
||||
<salt.modules.state.highstate>` is run, or by executing the
|
||||
:mod:`saltutil.sync_grains <salt.modules.saltutil.sync_grains>` or
|
||||
:mod:`saltutil.sync_all <salt.modules.saltutil.sync_all>` functions.
|
||||
|
||||
Before adding a grain to Salt, consider what the grain is and remember that
|
||||
grains need to be static data. If the data is something that is likely to
|
||||
change, consider using :doc:`Pillar <../pillar/index>` instead.
|
||||
|
||||
.. _`dict`: http://docs.python.org/library/stdtypes.html#typesmapping
|
||||
.. _`state.highstate`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.highstate
|
||||
.. _`saltutil.sync_grains`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_grains
|
||||
.. _`saltutil.sync_all`: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_all
|
||||
|
||||
Examples of Grains
|
||||
------------------
|
||||
|
Loading…
Reference in New Issue
Block a user