Note
This module requires PyMongo to be installed.
Ensure that the named user is absent
Ensure that the user is present with the specified properties
The database in which to create the user
Note
If the database doesn't exist, it will be created.
Example:
mongouser-myapp:
mongodb_user.present:
- name: myapp
- passwd: password-of-myapp
# Connect as admin:sekrit
- user: admin
- password: sekrit
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.1