Use this when inventory comes from the source of truth.
Inventory · Source of Truth
Inventory in a source of truth is the authoritative list of devices and systems with their attributes, used to generate automation inventories instead of maintaining separate lists.
1. SoT provides inventory for automation.
2. Use status to include/exclude.
3. Roles/sites for grouping.
4. Platform for connections.
5. Keep current.
SoT records → inventory plugin → targets
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as duplicate labels, stale inventory, conflicting authority, broad filters, race between read and write, orphaned relationships and automation acting on data not yet reconciled, choosing the cases most relevant to authoritative object selection, revision/freshness, relationship traversal and preventing automation from using stale or duplicate inventory records.
Step 2 Common mistakes Narrow the fault
- Inventory derived from devices instead of the SoT.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Generate inventory from the source of truth.
- Attributes drive automation behaviour.
- Keep one list, not many.
- SoT device/VM records — inventory
ansible-inventory -i nb.yml --graph— generated inventory- Status field (active, planned, decommissioning) — lifecycle
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Inventory in a source of truth is the authoritative list of devices with their attributes: model, serial, site, role, platform, management address, lifecycle status. Automation and monitoring tools derive their own inventories from it rather than keeping separate lists.
Keep it accurate by:
- Adding devices to the SoT before deployment (status planned/staged).
- Comparing SoT with discovery (LLDP/CDP, SNMP, controller inventories) on a schedule.
- Updating status through decommissioning workflows.
- Collecting serials and software versions automatically rather than typing them.
A dynamic inventory plugin (e.g. netbox.netbox.nb_inventory) turns the SoT directly into automation inventory, so a device added there is automatically managed.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Source of Truth > Inventory. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://netbox.readthedocs.io/en/stable/introduction/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For authoritative object selection, revision/freshness, relationship traversal and preventing automation from using stale or duplicate inventory records, prefer typed fields and stable IDs over human presentation text.