Added a note about the providers minion conf; misc fixes

This commit is contained in:
Seth House 2012-10-11 14:44:23 -06:00
parent 2c76365894
commit c4ff039147

View File

@ -20,9 +20,15 @@ module detected for Arch Linux, the systemd module can be used:
- enable: True - enable: True
- provider: systemd - provider: systemd
In this instance the systemd module will replace the service virtual module In this instance the :py:mod:`~salt.modules.systemd` module will replace the
which is used by default on Arch Linux, and the httpd service will be set up :py:mod:`~salt.modules.service` basic module which is used by default on Arch
using systemd. Linux, and the :program:`httpd` service will be set up using
:program:`systemd`.
.. note::
You can also set a provider globally in the minion config
:conf_minion:`providers`.
Arbitrary Module Redirects Arbitrary Module Redirects
========================== ==========================
@ -39,7 +45,8 @@ module can be used to provide certain functionality.
- pkg: yumpkg5 - pkg: yumpkg5
- cmd: customcmd - cmd: customcmd
In this example the default pkg module is being redirected to use the *yumpkg5* In this example the default :py:mod:`~salt.modules.pkg` module is being
module (*yum* via shelling out instead of via the yum API), but is also using redirected to use the :py:mod:`~salt.modules.yumpkg5` module (:program:`yum`
a custom module to invoke commands. This could be used to dramatically change via shelling out instead of via the :program:`yum` Python API), but is also
the behavior of a given state. using a custom module to invoke commands. This could be used to dramatically
change the behavior of a given state.