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

    我是分割线

  • 相关阅读:
    Scala 学习笔记之implicit
    sbt 学习笔记(1)sbt安装和交互式界面使用
    eclipse常用快捷键
    VMWare12安装CentOS7以及redis安装和常用命令
    JAVA 遍历文件夹下的所有文件(递归调用和非递归调用)
    java 遍历List 和 Map的几种方法
    java中常用的空判断
    Layer 3.0
    AdminLTE 2.4
    Bootstrap 3.3
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_beacons.html
Copyright © 2011-2022 走看看