Skip to content

Commit

Permalink
feat: Add ESX VMs ip & os inventory support
Browse files Browse the repository at this point in the history
Add glpi_version option support
  • Loading branch information
g-bougard committed Nov 5, 2024
1 parent b7f23ad commit 7088dc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ core:
* fix #789: Avoid warning on commandline about possible confusion when reading quoted
configuration value including a dash from configuration file
* fix #790: Fix server URL parsing when it doesn't include scheme
* Add glpi_version configuration support to handle inventory_format dependent features

inventory:
* Fix rare windows perl error during drives, ipv6 network or videos inventory
Expand All @@ -23,6 +24,11 @@ deploy:
"return code is not" and "command output doesn't contain" checks which was always
failing.

esx:
* Support reporting of ESX virtualmachines ip and operating system. It requires
inventory_format schema v1.1.36 on server-side included in GLPI v10.0.17.
* Add --glpi_version option support to glpi-esx script

packaging:
* Update Windows MSI packing building process to use:
- OpenSSL 3.4.0
Expand Down
4 changes: 2 additions & 2 deletions lib/GLPI/Agent/SOAP/VMware/Host.pm
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ sub getVirtualMachines {
$vmInventory->{SERIAL} = "VMware-".join(' ', @uuid_parts[0..7]).'-'.join(' ', @uuid_parts[8..15]);
}

# Glpi version MUST at least be 10.0.18 to set IPADDRESS and OPERATINGSYSTEM
if ($self->supportGlpiVersion('10.0.18')) {
# At least Glpi version 10.0.17 will include required schema to validate following fields
if ($self->supportGlpiVersion('10.0.17')) {
$vmInventory->{IPADDRESS} = $machine->{summary}{guest}{ipAddress}
unless empty($machine->{summary}{guest}{ipAddress});
unless (empty($machine->{summary}{guest}{guestFullName})) {
Expand Down

0 comments on commit 7088dc3

Please sign in to comment.