22.27.64. salt.states.mongodb_user

22.27.64.1. Management of Mongodb users

Note

This module requires PyMongo to be installed.

salt.states.mongodb_user.absent(name, user=None, password=None, host=None, port=None, database='admin')

Ensure that the named user is absent

name
The name of the user to remove
user
The user to connect as (must be able to create the user)
password
The password of the user
host
The host to connect to
port
The port to connect to
database
The database to create the user in (if the db doesn't exist, it will be created)
salt.states.mongodb_user.present(name, passwd, database='admin', user=None, password=None, host='localhost', port=27017)

Ensure that the user is present with the specified properties

name
The name of the user to manage
passwd
The password of the user
user
The user to connect as (must be able to create the user)
password
The password of the user
host
The host to connect to
port
The port to connect to
database
The database to create the user in (if the db doesn't exist, it will be created)

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.2

Table Of Contents

Previous topic

22.27.63. salt.states.mongodb_database

Next topic

22.27.65. salt.states.mount

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.