<div dir="ltr">Hi Mario,<div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 June 2013 18:14, Mario Jorge de Sousa Freire <span dir="ltr"><<a href="mailto:mario.freire@camara.leg.br" target="_blank">mario.freire@camara.leg.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, Gonéri!<br>
<br>
Thanks for answering, again!<br>
<br>
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."<br>

<br>
Could you explain a little more?  I really didn't understand how and why the software is copied to the mirror server.<br>
<div class="im"><br></div></blockquote><div><br class="">When you set up a mirror in FI4G, the mirror url is added to each associated in the json describing the deploy task.</div><div>In FI4G 0.83 flavors, urls mirrors are all sent to the agent before the GLPI server url.</div>
<div>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:</div><div>* Mirrors filtered by computer's location</div>
<div>* Mirrors without any location</div><div>* GLPI Server</div><div><br></div><div>example:</div><div><div>   "associatedFiles" : {</div><div>      "f97068ad44acad3aa0172effbff01be6541415f9e01e5471e2a1eeb8a8f6838b3207bce20d721c67ec5b01e9954e6ca586261f14c0b718bd1453edc0139417bd" : {</div>
<div>         "uncompress" : 0,</div><div>         "mirrors" : [</div><div>            "<a href="http://mirror1.teclib-kroy.sandbox">http://mirror1.teclib-kroy.sandbox</a>", //<-- Set on Paris Location<br>
</div><div>            "<a href="http://mirror3.teclib-kroy.sandbox">http://mirror3.teclib-kroy.sandbox</a>", //<-- No location set</div><div>            "<a href="http://glpi.teclib-kroy.sandbox/master/plugins/fusioninventory/b/deploy/?action=getFilePart&file=">http://glpi.teclib-kroy.sandbox/master/plugins/fusioninventory/b/deploy/?action=getFilePart&file=</a>" //<-- GLPI server</div>
<div>         ],</div><div>         "multiparts" : [</div><div>            "78829ae935a4b11345c9d5d59286905c4c002081aff197addfa81b01989332e21d6b2742e80921f279e9e69bee94daedd6b48599e7a62a2d4ec3f74f3881b4c8"</div>
<div>         ],</div><div>         "p2p-retention-duration" : 0,</div><div>         "p2p" : 0,</div><div>         "name" : "libreoffice-install.bat"</div><div>      }</div><div>   }</div>
<div><br></div><div><br></div><div>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.</div>
<div>The agent will just ask for fileparts in the following order :</div><div>* P2P (if enabled)</div><div>* Mirrors</div><div>* GLPI Server</div></div><div><br></div><div style>Cheers,</div><div style>--</div><div style>
Kevin Roy</div></div><br></div></div>