Le 12/06/2012 14:34, Gonéri Le Bouder a écrit :
   Branch: refs/heads/master
   Home:   https://github.com/fusinv/fusioninventory-agent
   Commit: f0be7c82b5cde76c56a60f8e1b790228c01155a1
       
https://github.com/fusinv/fusioninventory-agent/commit/f0be7c82b5cde76c56a60f8e1b790228c01155a1
   Author: Gonéri Le Bouder <[email protected]>
   Date:   2012-06-12 (Tue, 12 Jun 2012)

   Changed paths:
     M lib/FusionInventory/Agent/Config.pm

   Log Message:
   -----------
   declares local-inventory-format parameter
We already had task-specific parameters (such as inventory-only parameters), now we have task-and-target-specific parameters, which only apply to a specific task applied to a specific target... May I suggest to add for instance --stdout-inventory-no-printer option, for excluding printers from the inventory, but only when run against 'stderr' target ?

That's really not the way to go for genericity. If you really need to have target-specific results, you should run the agent multiple times, with distinct parameters. Especially for this use case: if you want local inventory files, you'd rather run the agent from a cron/scheduled task, rather than run it as a server.

The current execution model is ugly, and this kind of workaround won't help fixing it.
--
BOFH excuse #27:

radiosity depletion

_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel

Répondre à