salt.modules.mine

The function cache system allows for data to be stored on the master so it can be easily read by other minions

salt.modules.mine.get(tgt, fun, expr_form='glob')

Get data from the mine based on the target, function and expr_form

CLI Example:

salt '*' mine.get '*' network.interfaces
salt.modules.mine.update()

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

Previous topic

salt.modules.mdadm

Next topic

salt.modules.mongodb