Improving docs for salt.states.makeconf

This commit is contained in:
Nitin Madhok 2014-07-08 12:57:49 -04:00
parent fef51d34ef
commit 51bea3c8b0

View File

@ -3,7 +3,7 @@
Management of Gentoo make.conf Management of Gentoo make.conf
============================== ==============================
A state module to manage Gentoo's make.conf file A state module to manage Gentoo's ``make.conf`` file
.. code-block:: yaml .. code-block:: yaml
@ -36,12 +36,12 @@ def _make_set(var):
def present(name, value=None, contains=None, excludes=None): def present(name, value=None, contains=None, excludes=None):
''' '''
Verify that the variable is in the make.conf and has the provided Verify that the variable is in the ``make.conf`` and has the provided
settings. If value is set, contains and excludes will be ignored. settings. If value is set, contains and excludes will be ignored.
name name
The variable name. This will automatically be converted to all Upper The variable name. This will automatically be converted to upper
Case since variables in make.conf are Upper Case case since variables in ``make.conf`` are in upper case
value value
Enforce that the value of the variable is set to the provided value Enforce that the value of the variable is set to the provided value
@ -160,11 +160,11 @@ def present(name, value=None, contains=None, excludes=None):
def absent(name): def absent(name):
''' '''
Verify that the variable is not in the make.conf. Verify that the variable is not in the ``make.conf``.
name name
The variable name. This will automatically be converted to all Upper The variable name. This will automatically be converted to upper
Case since variables in make.conf are Upper Case case since variables in ``make.conf`` are in upper case
''' '''
ret = {'changes': {}, ret = {'changes': {},
'comment': '', 'comment': '',