在 chef 中从策略组中删除一个节点

In chef remove a node from policy group

我已经设置了节点策略组

 knife node policy set nodename 'xxxx' 'xxxx'

如果我想从策略组中删除节点,我该怎么做?

我认为您可以只对策略组和名称使用空字符串:

knife node policy set nodename '' ''

如果这不起作用,您可以编辑节点并将 policy_namepolicy_group 值设置为空字符串。

knide node edit nodename