gpt4 book ai didi

Saltstack 从 salt '*' state.apply 中排除 minions in top.sls

转载 作者:行者123 更新时间:2023-12-02 14:58:25 25 4
gpt4 key购买 nike

即使我在 CLI 上运行 salt '*' state.apply,是否有办法将 minions 排除在目标之外?

理想情况下,应该在 top.sls 的某处声明排除

最佳答案

在 CLI 中,您可以按如下方式排除 minion,

salt -C 'not minion-id' test.ping

以上模式自版本 2015.8.0 起可用。如果您使用的是旧版本,

salt -C '* and not minion-id' test.ping

请阅读更多关于 Compound matchers here 的信息.

关于Saltstack 从 salt '*' state.apply 中排除 minions in top.sls,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51783641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com