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

    inspector.query

    Query the node for specific information.
    
    Parameters:
    
    * **scope**: Specify scope of the query.
    
       * **System**: Return system data.
    
       * **Software**: Return software information.
    
       * **Services**: Return known services.
    
       * **Identity**: Return user accounts information for this system.
          accounts
            Can be either 'local', 'remote' or 'all' (equal to "local,remote").
            Remote accounts cannot be resolved on all systems, but only
            those, which supports 'passwd -S -a'.
    
          disabled
            True (or False, default) to return only disabled accounts.
    
       * **payload**: Payload scope parameters:
          filter
            Include only results which path starts from the filter string.
    
          time
            Display time in Unix ticks or format according to the configured TZ (default)
            Values: ticks, tz (default)
    
          size
            Format size. Values: B, KB, MB, GB
    
          type
            Include payload type.
            Values (comma-separated): directory (or dir), link, file (default)
            Example (returns everything): type=directory,link,file
    
          owners
            Resolve UID/GID to an actual names or leave them numeric (default).
            Values: name (default), id
    
          brief
            Return just a list of payload elements, if True. Default: False.
    
       * **all**: Return all information (default).
    
    CLI Example:
    
        salt '*' inspector.query scope=system
        salt '*' inspector.query scope=payload type=file,link filter=/etc size=Kb brief=False
    

    inspector.inspect

    Start node inspection and save the data to the database for further query.
    
    Parameters:
    
    * **mode**: Clarify inspection mode: configuration, payload, all (default)
    
      payload
        * **filter**: Comma-separated directories to track payload.
    
    * **priority**: (advanced) Set priority of the inspection. Default is low priority.
    
    
    
    CLI Example:
    
        salt '*' inspector.inspect
        salt '*' inspector.inspect configuration
        salt '*' inspector.inspect payload filter=/opt,/ext/oracle
    

    inspector.snapshots

    List current description snapshots.
    
    CLI Example:
    
        salt myminion inspector.snapshots
    

    inspector.delete

    Remove description snapshots from the system.
    
    ::parameter: all. Default: False. Remove all snapshots, if set to True.
    
    CLI example:
    
        salt myminion inspector.delete <ID> <ID1> <ID2>..
        salt myminion inspector.delete all=True
    

    inspector.export

    Export an image description for Kiwi.
    
    Parameters:
    
    * **local**: Specifies True or False if the export has to be in the local file. Default: False.
    * **path**: If `local=True`, then specifies the path where file with the Kiwi description is written.
                Default: `/tmp`.
    
    CLI Example:
    
        salt myminion inspector.export
        salt myminion inspector.export format=iso path=/opt/builds/
    

    inspector.build

    Build an image from a current system description.
    The image is a system image can be output in bootable ISO or QCOW2 formats.
    
    Node uses the image building library Kiwi to perform the actual build.
    
    Parameters:
    
    * **format**: Specifies output format: "qcow2" or "iso. Default: `qcow2`.
    * **path**: Specifies output path where to store built image. Default: `/tmp`.
    
    CLI Example:
    
        salt myminion inspector.build
        salt myminion inspector.build format=iso path=/opt/builds/
  • 相关阅读:
    golang gin 框架的 https 配置
    graphql请求中的数据保护(illuminant)
    2021国防科技大学计算机学院无军籍考研经验贴
    (转载)R语言ARIMA时间序利
    Centos 部署 open-falcon 0.3.x 单机部署(二)后端启动
    Centos 部署 open-falcon 0.3.x 单机部署(三)前端启动
    Centos 部署 open-falcon 0.3.x 单机部署(一)环境安装
    MLPerf 机器学习基准测试实战入门(三)recommendation
    MLPerf Training 参考实现
    Docker命令集合——构建、拉容器、进入容器、容器保存为镜像、删除镜像、启动镜像、保存打开移动镜像、挂载
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_inspector.html
Copyright © 2011-2022 走看看