Use one FOG server to control multiple other servers
-
Hello,
I’ve been tasked with making a FOG environment whereby two FOG servers at two different sites backup/restore their respective site’s computers, and both servers are controlled by another FOG server in an Amazon EC2 instance. The EC2 FOG server is not meant to hold any images, but just be used to ease management of the other two servers at two different sites.
This appears to rule out master nodes, because images go to the master first, and are then copied down to the other nodes. I see that I can create multiple storage nodes and groups, and set images to those groups, which is a start, but if I tell the EC2 FOG server to make a new image and store it in a storage node on a site, will the EC2 FOG server do the imaging, or will it tell the server at the storage node to do the imaging?
If it will use the FOG server at the storage node to do the imaging, then that’s perfect, otherwise, how would I set it up so I can have the EC2 FOG server tell a server at a site to setup/deploy an image?
-
@Benjamin_D look into the location plugin. i think you should be able to do what you want to do, but i don’t think anyone has done it before.
-
@Benjamin_D said in Use one FOG server to control multiple other servers:
FOG server in an Amazon EC2 instance.
Install a certificate on the box, you want to be using HTTPS if this is going across the internet. Or setup a VPN tunnel, don’t just stick an elastic IP on it and say you’re done.
-
@Junkhacker said in Use one FOG server to control multiple other servers:
@Benjamin_D look into the location plugin. i think you should be able to do what you want to do, but i don’t think anyone has done it before.
That definitely looks like it will help, however it appears I’ll still need to set up the route over WAN so that the control server can talk to the storage nodes. What ports would I need to forward to allow communication between the control server and the local master storage nodes?
-
@Benjamin_D Joe created an excellent document that outlines what ports need to be open on the fog server. ref: https://forums.fogproject.org/topic/6162/firewall-configuration
Between the remote site (assuming a storage node). You will need FTP and HTTP communications from the FOG Master server to each slave server. From the remote storage nodes it will need to reach back to the master FOG server with http and mysql. Luckily the storage node doesn’t communicate to the master FOG server using NFS that is problematic to script firewall rules for.
-
There’s also this: https://wiki.fogproject.org/wiki/index.php?title=FOG_security