I have a list of about 40 nodes that I want to edit the run list on, replacing one role with another role. Using knife exec, I can delete the old role with
But this puts the new role at the end of the run list, and I want it at the beginning of the run list, where the old role was. Is there a way with knife exec and nodes.transform that I can just replace the old role with the new one?
Thanks. That's an interesting approach. It's not exactly what I was thinking of, but it looks like with some changes it could accomplish the same thing.