NAME

FusionInventory::Agent::Task::Inventory::Module - Inventory task module for FusionInventory

DESCRIPTION

This module is the base class for all inventory task modules.

MODULE CONFIGURATION PARAMETERS

$runAfter = []

Array ref of module string list.

List of modules to always be run before this one. If any module of this list is disabled, the module won't be run: this is a hard dependency.

Example: see FusionInventory::Agent::Task::Inventory::Linux module

$runAfterIfEnabled = []

Array ref of module string list.

List of enabled modules to be run before this one: this is a soft dependency.

Example: see FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Memory module

$runMeIfTheseChecksFailed = []

Array ref of module string list.

If a module in that list is enabled, this one will be disabled.

Example: see FusionInventory::Agent::Task::Inventory::Win32::Bios module

FUNCTIONS

isEnabled (%params)

Provided parameters: no_category: ref to hash indexed from no_category parameter datadir : resources folder logger : agent logger registry : registry option passed by server scan_homedirs: scan-homedirs configuration parameter scan_profiles: scan-profiles configuration parameter

Returns true is the module should be used for local inventory.

isEnabledForInventory (%params)

Provided parameters: no_category: ref to hash indexed from no_category parameter datadir : resources folder logger : agent logger registry : registry option passed by server scan_homedirs: scan-homedirs configuration parameter scan_profiles: scan-profiles configuration parameter

Returns true is the module should be used for remote inventory (firstly WMI inventory).

doInventory (%params)

Provided parameters: inventory : inventory object to populate with dedicated API no_category: ref to hash indexed from no_category parameter datadir : resources folder logger : agent logger registry : registry option passed by server scan_homedirs: scan-homedirs configuration parameter scan_profiles: scan-profiles configuration parameter

Updates passed inventory with found inventory values.