关于saltstack mine自定义收集minion状态及应用场景
mine.delete:Remove specific function contents of minion. Returns True on success.
CLI Example:
salt '*' mine.delete 'network.interfaces'
mine.flush:
Remove all mine contents of minion. Returns True on success.
CLI Example:
salt '*' mine.flush
mine.get:
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
mine.send:
Send a specific function to the mine.
CLI Example:
salt '*' mine.send network.interfaces eth0
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:
页:
[1]