盐状态有效性检查工具
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
snapshot create and check highstate snapshots
template render a file template for specified minions
解决方法libcrypto.dylib文件无法加载macOS
如果slskit
以zsh: abort
或Abort trap: 6
失败,请通过运行带有PYTHONDEVMODE=1
的命令检查错误。如果问题在于_load_libcrypto
调用rsax931.py
,请编辑salt/utils/rsax931.py
第38行:
更多信息:
- https://github.com/saltstack/salt/issues/55084
- https://github.com/Homebrew/homebrew-core/pull/45895/files#diff-5bdebf3b9146d50b15f9a0dc7e7def27R131-R133
处理virtual函数时引发异常的解决方法
当看到这样的错误时:
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.yamlslskit:roster:foo:grains:kernel:Linux
你可以通过检查你真正的仆从的grains.items
来找到颗粒的值。在
如何保持谷物干燥
使用default_grains
选项避免在所有仆从身上复制相同的颗粒:
# slskit.yamlslskit:roster:foo:bar:baz:default_grains:os:Ubuntu
对于更高级的情况,请使用YAML锚:
# slskit.yaml_grains:ubuntu:&ubuntuos:Ubuntufedora:&fedoraos:Fedoraslskit:roster:u1:grains:<<:*ubuntuu2:grains:<<:*ubuntuf1:grains:<<:*fedoraf2:grains:<<:*fedora
如何减少输出冗余
使用Salt的^{
# slskit.yamlsalt:output:yamlslskit:...
- 项目
标签: