zoukankan      html  css  js  c++  java
  • Saltstack module beacons 详解

    beacons.reset

    Resest beacon configuration on the minion
    
    CLI Example:
    
        salt '*' beacons.reset
    

    beacons.disable

    Disable all beacons jobs on the minion
    
    :return:                Boolean and status message on success or failure of disable.
    
    CLI Example:
    
        salt '*' beacons.disable
    

    beacons.list

    List the beacons currently configured on the minion
    
    :param return_yaml:    Whether to return YAML formatted output,
                           default ``True``
    
    :param include_pillar: Whether to include beacons that are
                           configured in pillar, default is ``True``.
    
    :param include_opts:   Whether to include beacons that are
                           configured in opts, default is ``True``.
    
    :return:               List of currently configured Beacons.
    
    CLI Example:
    
        salt '*' beacons.list
    

    beacons.delete

    Delete a beacon item
    
    :param name:            Name of the beacon to delete
    :return:                Boolean and status message on success or failure of delete.
    
    CLI Example:
    
        salt '*' beacons.delete ps
    
        salt '*' beacons.delete load
    

    beacons.save

    Save all beacons on the minion
    
    :return:                Boolean and status message on success or failure of save.
    
    CLI Example:
    
        salt '*' beacons.save
    

    beacons.list_available

    List the beacons currently available on the minion
    
    :param return_yaml:     Whether to return YAML formatted output, default
                            ``True``
    :return:                List of currently configured Beacons.
    
    CLI Example:
    
        salt '*' beacons.list_available
    

    beacons.modify

    Modify an existing beacon
    
    :param name:            Name of the beacon to configure
    :param beacon_data:     Dictionary or list containing updated configuration for beacon.
    :return:                Boolean and status message on success or failure of modify.
    
    CLI Example:
    
        salt '*' beacons.modify ps "[{'salt-master': 'stopped'}, {'apache2': 'stopped'}]"
    

    beacons.enable_beacon

    Enable beacon on the minion
    
    :name:                  Name of the beacon to enable.
    :return:                Boolean and status message on success or failure of enable.
    
    CLI Example:
    
        salt '*' beacons.enable_beacon ps
    

    beacons.enable

    Enable all beacons on the minion
    
    Returns:
        bool: Boolean and status message on success or failure of enable.
    
    CLI Example:
    
        salt '*' beacons.enable
    

    beacons.disable_beacon

    Disable beacon on the minion
    
    :name:                  Name of the beacon to disable.
    :return:                Boolean and status message on success or failure of disable.
    
    CLI Example:
    
        salt '*' beacons.disable_beacon ps
    

    beacons.add

    Add a beacon on the minion
    
    :param name:            Name of the beacon to configure
    :param beacon_data:     Dictionary or list containing configuration for beacon.
    :return:                Boolean and status message on success or failure of add.
    
    CLI Example:
    
        salt '*' beacons.add ps "[{'processes': {'salt-master': 'stopped', 'apache2': 'stopped'}}]"
    

    我是分割线

  • 相关阅读:
    【工具】模板引擎 Velocity
    【Android】Android 彩信发送的两种方式+源代码
    【Win7】 建立无线局域网实现共享上网
    【Android】java.net.SocketException: Permission denied解决
    Android中使用Post请求(网友版)
    Android通过post请求发送一个xml,解析返回xml数据
    学用MVC4做网站六后台管理:6.1管理员
    学用MVC4做网站六:后台管理
    html5的新增的标签和废除的标签
    HTML5新增的属性和废除的属性
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_beacons.html
Copyright © 2011-2022 走看看