Question #14497
closed
Added by Noelle Wiley about 5 years ago.
Updated almost 5 years ago.
Description
I have a question I am looking for maybe some suggestions on how to approach this task. I am migrating my Rudder instance which is currently cloud based to a on-prem server. The policy_server.dat file on my nodes points to an IP address which will more than likely change. Do you have any suggestions on how to approach this task?
Thank you in advance.
Hello Noelle,
People generally does that at DNS level (ie use a name in policy_server.dat and make the switch in name resolver).
If that option is not possible, you can configure a file enforce technique content with the new IP and see agent go from one server to the other. Be sure to have a fallback solution to still be able to connect to your node if something goes wrong.
Depending of the logic of you migration, you could create a technique with some fallback logic, like "condition from command => try curl -k https://ip_in_policy_server.dat/uuid => if != 0 then retore old IP".
Just to be sure: you are copying the old server into a new place, or is it a new installation ?
If it's a new installation, the proposed solution won't work: server keys will be different (see https://docs.rudder.io/reference/5.0/administration/procedures.html#_migration for further action to do in the node), and the node will need to be accepted in the new server so a "rudder agent inventory" must follow the migration.
- Status changed from New to Resolved
Closing, feel free to reopen if you need more information.
Also available in: Atom
PDF