mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
added a code-block example of how the yaml should be formatted
This commit is contained in:
parent
b9ad4bba2d
commit
29e410c1ea
1 changed files with 13 additions and 2 deletions
|
@ -39,8 +39,19 @@ def present(name,
|
|||
the user. Example:
|
||||
|
||||
grants:
|
||||
foo_db: read
|
||||
bar_db: all
|
||||
foo_db: read
|
||||
bar_db: all
|
||||
|
||||
**Example:**
|
||||
|
||||
.. code-block:: yaml
|
||||
example user present in influxdb:
|
||||
influxdb_user.present:
|
||||
- name: example
|
||||
- password: somepassword
|
||||
- admin: False
|
||||
- grants:
|
||||
db_name: read
|
||||
'''
|
||||
create = False
|
||||
ret = {'name': name,
|
||||
|
|
Loading…
Add table
Reference in a new issue