• 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'}}]"
    

    我是分割线

  • 相关阅读:
    两个栈实现队列
    重建二叉树
    最大的K个数
    堆排序
    Android 强制竖屏
    屏蔽输入框的焦点
    Android 全屏显示的方法(不包含状态栏)
    android 布局之scrollview
    clean之后R文件消失
    thinkphp
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_beacons.html
Copyright © 2020-2023  润新知