We have a Pritunl VPN set up on an AWS EC2 instance running Oracle Linux 9, managed within an Auto Scaling Group (ASG). Recently, we encountered a situation where the ASG replaced an unhealthy instance with a new one having a different private IP address. However, when the Pritunl service starts on the new instance, it is not attaching the healthy host to the configured servers automatically and all of the servers still point to the host that is no longer available. Is there a way to automate this attachment process?
When hosts are redployed the /var/lib/pritunl/pritunl.uuid file needs to be restored. If new hosts are added the hosts will need to be attached to servers. Currently that can only be done in the web console.
Having that said seems like there isn’t any out of the box method which will help us for correct reassignment of active host to existing Pritunl servers in case of host failure, is that correct?