salt.returners.mongo_future_return¶
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
This mongo returner is being developed to replace the default mongodb returner in the future and should not be considered API stable yet.
-
salt.returners.mongo_future_return.
get_fun
(fun)¶ Return the most recent jobs that have executed the named function
-
salt.returners.mongo_future_return.
get_jid
(jid)¶ Return the return information associated with a jid
-
salt.returners.mongo_future_return.
get_jids
()¶ Return a list of job ids
-
salt.returners.mongo_future_return.
get_load
(jid)¶ Return the load associated with a given job id
-
salt.returners.mongo_future_return.
get_minions
()¶ Return a list of minions
-
salt.returners.mongo_future_return.
returner
(ret)¶ Return data to a mongodb server
-
salt.returners.mongo_future_return.
save_load
(jid, load)¶ Save the load for a given job id