Module to provide MongoDB functionality to Salt
configuration: | This module uses PyMongo, and accepts configuration details as parameters as well as configuration settings: mongodb.host: 'localhost'
mongodb.port: 27017
mongodb.user: ''
mongodb.password: ''
This data can also be passed into pillar. Options passed into opts will overwrite options passed into pillar. |
---|
Checks if a database exists in Mongodb
CLI Example:
salt '*' mongodb.db_exists <name> <user> <password> <host> <port>
List all Mongodb databases
CLI Example:
salt '*' mongodb.db_list <user> <password> <host> <port>
Remove a Mongodb database
CLI Example:
salt '*' mongodb.db_remove <name> <user> <password> <host> <port>
Create a Mongodb user
CLI Example:
salt '*' mongodb.user_create <name> <user> <password> <host> <port> <database>
Checks if a user exists in Mongodb
CLI Example:
salt '*' mongodb.user_exists <name> <user> <password> <host> <port> <database>
List users of a Mongodb database
CLI Example:
salt '*' mongodb.user_list <name> <user> <password> <host> <port> <database>
Remove a Mongodb user
CLI Example:
salt '*' mongodb.user_remove <name> <user> <password> <host> <port> <database>