The function cache system allows for data to be stored on the master so it can be easily read by other minions
Remove specific function contents of minion. Returns True on success.
CLI Example:
salt '*' mine.delete 'network.interfaces'
Remove all mine contents of minion. Returns True on success.
CLI Example:
salt '*' mine.flush
Get data from the mine based on the target, function and expr_form
Targets can be matched based on any standard matching system that can be matched on the master via these keywords:
glob
pcre
grain
grain_pcre
CLI Example:
salt '*' mine.get '*' network.interfaces
salt '*' mine.get 'os:Fedora' network.interfaces grain
Send a specific function to the mine.
CLI Example:
salt '*' mine.send network.interfaces eth0
Execute the configured functions and send the data back up to the master The functions to be executed are merged from the master config, pillar and minion config under the option "function_cache":
mine_functions:
network.ip_addrs:
- eth0
disk.usage: []
The function cache will be populated with information from executing these functions
CLI Example:
salt '*' mine.update
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.