salt.runners.cache

Return cached data from minions

salt.runners.cache.clear_all(tgt=None, expr_form='glob')

Clear the cached pillar, grains, and mine data of the targeted minions

CLI Example:

salt-run cache.clear_all
salt.runners.cache.clear_git_lock(role, remote=None, **kwargs)

New in version 2015.8.2.

Remove the update locks for Salt components (gitfs, git_pillar, winrepo) which use gitfs backend code from salt.utils.gitfs.

Note

Running cache.clear_all will not include this function as it does for pillar, grains, and mine.

Additionally, executing this function with a role of gitfs is equivalent to running salt-run fileserver.clear_lock backend=git.

role
Which type of lock to remove (gitfs, git_pillar, or winrepo)
remote
If specified, then any remotes which contain the passed string will have their lock cleared. For example, a remote value of github will remove the lock from all github.com remotes.
type
: update,checkout
The types of lock to clear. Can be update, checkout, or both of

et (either comma-separated or as a Python list).

New in version 2015.8.8.

CLI Example:

salt-run cache.clear_git_lock git_pillar
salt.runners.cache.clear_grains(tgt=None, expr_form='glob')

Clear the cached grains data of the targeted minions

CLI Example:

salt-run cache.clear_grains
salt.runners.cache.clear_mine(tgt=None, expr_form='glob')

Clear the cached mine data of the targeted minions

CLI Example:

salt-run cache.clear_mine
salt.runners.cache.clear_mine_func(tgt=None, expr_form='glob', clear_mine_func_flag=None)

Clear the cached mine function data of the targeted minions

CLI Example:

salt-run cache.clear_mine_func tgt='*' clear_mine_func_flag='network.interfaces'
salt.runners.cache.clear_pillar(tgt=None, expr_form='glob')

Clear the cached pillar data of the targeted minions

CLI Example:

salt-run cache.clear_pillar
salt.runners.cache.grains(tgt=None, expr_form='glob', outputter=None, **kwargs)

Return cached grains of the targeted minions

CLI Example:

salt-run cache.grains
salt.runners.cache.mine(tgt=None, expr_form='glob', outputter=None, **kwargs)

Return cached mine data of the targeted minions

CLI Example:

salt-run cache.mine
salt.runners.cache.pillar(tgt=None, expr_form='glob', outputter=None, **kwargs)

Return cached pillars of the targeted minions

CLI Example:

salt-run cache.pillar