Unattended change/reconfigure of FQDN on running Jitsi deployment


I am working on a project in which already built a Jitsi meet/Jibri with token verification deployment. And I have a snapshot of that virtual machine that is hosting that deployment.

My aim is to dynamically spawn new servers from that snapshot, then somehow run a script to reconfigure Jitsi, Jicofo and JVB for the new FQDN of the new machine and also generate the required self-signed certificates.

I am looking for steps to follow to be able to do that.

I would then need figure out how to automate this.

Thanks in advance

I have successfully achieved this requirement and write a prototype bash script that works.
I will add it to this tread soon when I clean it up.