Replication - auto adding images to offsite FOG servers

  • FOG 1.2.0
    Ubuntu 14.04 LTS - each site is identical with hardware and OS/Fog versions.

    Hello, I have been looking through the forums for different things regarding replication/location plugin posts and came across everything that I needed up until now, but I cant find anything for this particular issue or im just not typing the search string correctly to find it.

    Replication works great, disk are being copied to my 2 “offsite” servers (as soon as I fix the issue below I will have 9 off site servers to deploy).

    My question is, is there a way to make the master node auto-update the image database on the remote servers to match what shows when I goto the “images” area of the FOG GUI on the master server? On both remote servers when I goto look at the list of images, there are no entries in the GUI but the files exist in the /images folder, and if I click on Create New Image to manually add them, I get nothing but a page that says “Add new image definition” at the top of the screen.

    In the past with version .32 (didnt know abuot the location plugin back then) I would have a script run that would look for any changes in the /images folder on a primary and scp them out to the other servers, then it would shut down mysql, export the FOG Database, scp that to the outlying servers, then start mysql again. The outlying servers would then run a script each evening that would shut down mysql, import the database from the main server, and then everything on this FOG server would match what was on the main - but sometimes the images wouldnt work, the imageID would change for some reason compared to what it was on the main server and I would have to manually delete and re-create the image definition.

    Shouldnt the location plugin be adding these entries after replication?

    Thanks for your help!

  • Moderator

    While I don’t have an answer for you, I do have a feature request out there for the exact same thing.
    Right now there the only way to do this is manually or scripting via sql dump and sql import of the images and snapins tables between the deployment nodes.

    You can do something similar but with storage nodes (not a master deployment node), and you will need to install the /tftpboot files on the storage node. You will need to use the location plugin and storage groups.