salt.states.mongodb_database

Management of MongoDB Databases

depends
  • pymongo Python module

Only deletion is supported, creation doesn't make sense and can be done using mongodb_user.present.

salt.states.mongodb_database.absent(name, user=None, password=None, host=None, port=None, authdb=None)

Ensure that the named database is absent. Note that creation doesn't make sense in MongoDB.

name

The name of the database 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

authdb

The database in which to authenticate

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.mongodb_database.html