[Fusioninventory-devel] [Fusioninventory-commit] [fusinv/fusioninventory-agent] f0be7c: declares local-inventory-format parameter

Guillaume Rousse guillomovitch at gmail.com
Wed Jun 13 11:01:50 UTC 2012


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 <goneri at rulezlan.org>
>    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



More information about the Fusioninventory-devel mailing list