Search code examples
setchef-infrapolicy

In chef remove a node from policy group


I have set the node policy groups

 knife node policy set nodename 'xxxx' 'xxxx'

If I want to remove the node from policy groups, how can I do that?


Solution

  • I think you can just use empty strings for the policy group and name:

    knife node policy set nodename '' ''
    

    If that does not work, you can edit the node and set policy_name and policy_group values to empty strings.

    knide node edit nodename