[Fusioninventory-user] RES: Software deployment - Mirror server

Kevin Roy kiniou at gmail.com
Mon Jun 17 09:41:58 UTC 2013


Hi Mario,


On 10 June 2013 18:14, Mario Jorge de Sousa Freire <
mario.freire at camara.leg.br> wrote:

> Hi, Gonéri!
>
> Thanks for answering, again!
>
> Well, I'm sorry but I still didn't understand how mirror server work for
> Fusion/GLPI. You've said: "The mirror feature comes with the software
> Deployment. You can use to reduce the bandwidth usage. The idea is to
> synchronize the repository during the night."
>
> Could you explain a little more?  I really didn't understand how and why
> the software is copied to the mirror server.
>
>
When you set up a mirror in FI4G, the mirror url is added to each
associated in the json describing the deploy task.
In FI4G 0.83 flavors, urls mirrors are all sent to the agent before the
GLPI server url.
In FI4G 0.84+1.0, urls are filtered by location and should (...there are
still some minors bug on this features as I'm writing this mail) be sent in
the following order:
* Mirrors filtered by computer's location
* Mirrors without any location
* GLPI Server

example:
   "associatedFiles" : {

"f97068ad44acad3aa0172effbff01be6541415f9e01e5471e2a1eeb8a8f6838b3207bce20d721c67ec5b01e9954e6ca586261f14c0b718bd1453edc0139417bd"
: {
         "uncompress" : 0,
         "mirrors" : [
            "http://mirror1.teclib-kroy.sandbox", //<-- Set on Paris
Location
            "http://mirror3.teclib-kroy.sandbox", //<-- No location set
            "
http://glpi.teclib-kroy.sandbox/master/plugins/fusioninventory/b/deploy/?action=getFilePart&file="
//<-- GLPI server
         ],
         "multiparts" : [

"78829ae935a4b11345c9d5d59286905c4c002081aff197addfa81b01989332e21d6b2742e80921f279e9e69bee94daedd6b48599e7a62a2d4ec3f74f3881b4c8"
         ],
         "p2p-retention-duration" : 0,
         "p2p" : 0,
         "name" : "libreoffice-install.bat"
      }
   }


Then you just have to rsync files located in
glpi/files/_plugins/fusioninventory/files/repository to some server and set
up an Apache which will serve statically those synchronized files.
The agent will just ask for fileparts in the following order :
* P2P (if enabled)
* Mirrors
* GLPI Server

Cheers,
--
Kevin Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-user/attachments/20130617/3e6f513c/attachment.html>


More information about the Fusioninventory-user mailing list