Improving docs for salt.states.mysql_grants

This commit is contained in:
Nitin Madhok 2014-07-08 13:31:50 -04:00
parent ada23d6422
commit c80de9e5cb

View File

@ -91,10 +91,10 @@ def present(name,
The network/host that the grant should apply to The network/host that the grant should apply to
grant_option grant_option
Adds the WITH GRANT OPTION to the defined grant. default: False Adds the WITH GRANT OPTION to the defined grant. Default is ``False``
escape escape
Defines if the database value gets escaped or not. default: True Defines if the database value gets escaped or not. Default is ``True``
revoke_first revoke_first
By default, MySQL will not do anything if you issue a command to grant By default, MySQL will not do anything if you issue a command to grant
@ -111,7 +111,7 @@ def present(name,
unknown and potentially dangerous state. unknown and potentially dangerous state.
Use with caution! Use with caution!
default: False Default is ``False``
ssl_option ssl_option
Adds the specified ssl options for the connecting user as requirements for Adds the specified ssl options for the connecting user as requirements for
@ -120,6 +120,8 @@ def present(name,
Possible key/value pairings for the dicts in the value: Possible key/value pairings for the dicts in the value:
.. code-block:: text
- SSL: True - SSL: True
- X509: True - X509: True
- SUBJECT: <subject> - SUBJECT: <subject>
@ -130,7 +132,7 @@ def present(name,
be an appropriate value as specified by the MySQL documentation for these be an appropriate value as specified by the MySQL documentation for these
options. options.
default: False (no ssl options will be used) Default is ``False`` (no ssl options will be used)
''' '''
comment = 'Grant {0} on {1} to {2}@{3} is already present' comment = 'Grant {0} on {1} to {2}@{3} is already present'
ret = {'name': name, ret = {'name': name,