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

    我是分割线

  • 相关阅读:
    系统运行性能监控日志
    iptables 操作
    访问dubbo没有权限,通过ip进行跳转服务器,并通过有权限服务器代理访问
    乐观锁
    ES的优化布局
    Docker壳的配置笔记
    expect 实现iterm2自动加载pem登录跳板机
    mybaits-spring demo 记
    Java中volatile修饰符,不稳定标记的用法笔记
    用intellj 建一个spring mvc 项目DEMO
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_beacons.html
Copyright © 2020-2023  润新知