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

    我是分割线

  • 相关阅读:
    git 学习
    C语言 do while 语句
    C语言 计算班级平均成绩以及不及格的人数
    C语言 加减算法
    C语言 两个日期间的天数计算
    C语言 梯形面积
    C语言 while语句
    C语言 分段函数if else语句
    C语言 乘法运算
    C语言学习,for循环
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_beacons.html
Copyright © 2011-2022 走看看