Skip to main content

检查盐状态有效性的工具

项目描述

slskit

发布 Python 建造 黑色的

Usage: slskit [OPTIONS] COMMAND [ARGS]...

Options:
  --version                       Show the version and exit.
  -c, --config TEXT               path to slskit configuration file (default:
                                  slskit.yaml or slskit.yml)

  -l, --log-level [CRITICAL|FATAL|ERROR|WARN|WARNING|INFO|DEBUG|NOTSET|QUIET|PROFILE|TRACE|GARBAGE]
  --help                          Show this message and exit.

Commands:
  highstate  render highstate for specified minions
  pillars    render pillar items for specified minions
  refresh    invoke saltutil.sync_all runner
  sls        render a given sls for specified minions
  template   render a file template for specified minions
  • 支持的 Python 版本:3.7、3.8、3.9
  • 支持的 Salt 版本:3001、3002、3003、3004

libcrypto.dylib 无法在 macOS 上加载的解决方法

如果使用orslskit失败,请通过使用 运行命令来检查错误。如果问题出在call in ,请编辑第 38 行:zsh: abortAbort trap: 6PYTHONDEVMODE=1_load_libcryptorsax931.pysalt/utils/rsax931.py

-lib = find_library('crypto')
+lib = "/usr/local/opt/openssl@1.1/lib/libcrypto.dylib"

更多信息:

处理函数时引发异常的解决方法

当看到这样的错误时:

ERROR:salt.loader:Exception raised when processing __virtual__ function for salt.loaded.int.module.freebsdkmod. Module will not be loaded: 'kernel'
WARNING:salt.loader:salt.loaded.int.module.freebsdkmod.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'freebsdkmod', please fix this.

您可能需要在slskit.yaml文件中添加相应的颗粒,例如:

# slskit.yaml

slskit:
  roster:
    foo:
      grains:
        kernel: Linux

grains.items你可以通过检查你真正的奴才来找到谷物的价值。

如何保持谷物干燥

使用default_grainsoption 避免在所有 minions 上复制相同的颗粒:

# slskit.yaml

slskit:
  roster:
    foo:
    bar:
    baz:
  default_grains:
    os: Ubuntu

对于更高级的情况,请使用 YAML 锚点:

# slskit.yaml

_grains:
  ubuntu: &ubuntu
    os: Ubuntu
  fedora: &fedora
    os: Fedora

slskit:
  roster:
    u1:
      grains:
        <<: *ubuntu
    u2:
      grains:
        <<: *ubuntu
    f1:
      grains:
        <<: *fedora
    f2:
      grains:
        <<: *fedora

如何减少输出冗长

使用 Salt 的output配置选项,例如:

# slskit.yaml

salt:
  output: yaml

slskit:
  ...

外部链接

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

slskit-2022.4.0.tar.gz (8.2 kB 查看哈希

已上传 source

内置分布

slskit-2022.4.0-py3-none-any.whl (8.7 kB 查看哈希

已上传 py3