salt.returners.memcache_return

Return data to a memcache server

To enable this returner the minion will need the python client for memcache installed and the following values configured in the minion or master config, these are the defaults.

memcache.host: 'localhost'
memcache.port: '11211'

Alternative configuration values can be used by prefacing the configuration. Any values not found in the alternative configuration will be pulled from the default location.

alternative.memcache.host: 'localhost'
alternative.memcache.port: '11211'

python2-memcache uses 'localhost' and '11211' as syntax on connection.

To use the memcache returner, append '--return memcache' to the salt command.

salt '*' test.ping --return memcache

To use the alternative configuration, append '--return_config alternative' to the salt command.

New in version 2015.5.0.

salt '*' test.ping --return memcache --return_config alternative

To override individual configuration items, append --return_kwargs '{"key:": "value"}' to the salt command.

New in version 2016.3.0.

salt '*' test.ping --return memcache --return_kwargs '{"host": "hostname.domain.com"}'
salt.returners.memcache_return.get_fun(fun)

Return a dict of the last function called for all minions

salt.returners.memcache_return.get_jid(jid)

Return the information returned when the specified job id was executed

salt.returners.memcache_return.get_jids()

Return a list of all job ids

salt.returners.memcache_return.get_load(jid)

Return the load data that marks a specified jid

salt.returners.memcache_return.get_minions()

Return a list of minions

salt.returners.memcache_return.prep_jid(nocache=False, passed_jid=None)

Do any work necessary to prepare a JID, including sending a custom id

salt.returners.memcache_return.returner(ret)

Return data to a memcache data store

salt.returners.memcache_return.save_load(jid, load, minions=None)

Save the load to the specified jid