Return data to a mongodb server
Required python modules: pymongo
This returner will send data from the minions to a MongoDB server. To configure the settings for your MongoDB server, add the following lines to the minion config files:
mongo.db: <database name>
mongo.host: <server ip address>
mongo.user: <MongoDB username>
mongo.password: <MongoDB user password>
mongo.port: 27017
To use the mongo returner, append '--return mongo' to the salt command. ex:
salt '*' test.ping --return mongo
salt.returners.mongo_return.
get_fun
(fun)¶Return the most recent jobs that have executed the named function
salt.returners.mongo_return.
get_jid
(jid)¶Return the return information associated with a jid
salt.returners.mongo_return.
prep_jid
(nocache, passed_jid=None)¶Do any work necessary to prepare a JID, including sending a custom id
salt.returners.mongo_return.
returner
(ret)¶Return data to a mongodb server