Migrate agents to new masters

we are running an Icinga2 environment with multiple satellites and one master on Centos7.
We want to migrate to a new design that is Debian based and will have a cluster design with two masters.
Is there a way to reassign the existing agents to the new masters without having to reconfigure each individual agent?

I would say that the answer to this primarily depends on the answer to “how
did you configure the existing agents?”

Also, not clear from the description above, is: do you intend to keep the
existing satellites, or will these be removed, so that the agents talk
directly to the new masters?


Yes, I will change all satellites. I have now understood that I have to re-migrate all agent systems.