User story #8127
On agent, check inventory before sending it to Rudder server
Description
As explain in http://www.rudder-project.org/redmine/issues/8022#note-9, we don't want to send to Rudder server inventory that will be refused FOR SURE, letting the agent think it is ok, where it is not.
So we have to do create a "check inventory" script, to execute before sending (or it is a "send inventory" script, with a pre-send part for checks), and that will ensure that the follwing attribute are filled:
- RUDDER/UUID
- RUDDER/HOSTNAME or OPERATINGSYSTEM/FQDN
- RUDDER/OWNER
- RUDDER/AGENT/POLICY_SERVER_UUID
- RUDDER/AGENT/AGENT_NAME
- OPERATINGSYSTEM/{FULL_NAME or KERNEL_NAME or NAME}
- OPERATINGSYSTEM/KERNEL_VERSION or if OPERATINGSYSTEM/KERNEL_NAME.toLowerCase aix: HARDWARE/OSVERSION
For information, the following rules are checked on Rudder side: they are less strict, but I'm almost sure it is for bad (i.e: code not cleaned) reasons:
- RUDDER/UUID (or else UUID anywhere - not sure we should do that)
- RUDDER/HOSTNAME or else HOSTNAME anywhere in 2.11,3.0 (not sure it's ok) or else in 3.1 OPERATINGSYSTEM/FQDN
- RUDDER/OWNER or else USER anywhere
- RUDDER/AGENT/POLICY_SERVER_UUID or else POLICY_SERVER anywhere
- RUDDER/AGENT/AGENT_NAME or else AGENTNAME anywhere
- OPERATINGSYSTEM/{FULL_NAME or KERNEL_NAME or NAME}
- OPERATINGSYSTEM/KERNEL_VERSION or if OPERATINGSYSTEM/KERNEL_NAME.toLowerCase aix: HARDWARE/OSVERSION
Subtasks
Related issues
Updated by François ARMAND almost 5 years ago
- Related to Bug #8022: Node's FQDN-Resolution is sometimes invalid added
Updated by Alexis MOUSSET almost 5 years ago
- Has duplicate User story #8077: Check generated inventory before sending it added
Updated by Benoît PECCATTE almost 5 years ago
- Related to Bug #8236: Examples in ldap-inventory are not real life examples added
Updated by François ARMAND over 4 years ago
- Related to User story #8919: Remove modifications made to the inventory by the agent added
Updated by Benoît PECCATTE over 4 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1055
Updated by Benoît PECCATTE over 4 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|1928b953625c42af41fec5828ba99c9183ecb5c7.
Updated by Nicolas CHARLES over 4 years ago
- Related to Bug #9388: Syntax error in fusion technique added
Updated by Vincent MEMBRÉ about 4 years ago
- Related to deleted (Bug #9388: Syntax error in fusion technique)
Updated by Vincent MEMBRÉ about 4 years ago
- Status changed from Pending release to Released