Delete duplicate Nodes


Hi All

We have a case of 2 different chef servers. We have moved a number of Chef clients from Chef server 1 to 2. Does anyone have any feedback on creating a script that will check for client existence on Chef server 2 and delete the corresponding node from Chef server 1?

Thanks in advance


Maybe knife-tidy can help… not sure… but worth to check it out


Thank you … I was wondering if there was some sort of script available which will do a comparison of the nodes between the 2 chef servers and delete from the original chef server if the node was found on the new one.

knife-tidy unfortunately doesn’t appear to cover this. Any other suggestions on how to achieve this?