水电工888 发表于 2018-8-1 10:09:06

关于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]
查看完整版本: 关于saltstack mine自定义收集minion状态及应用场景