Static inventory, dynamic inventory or a CMDB: how do you choose?
IntermediateProductionArchitecture Decisions and Tool Comparisons
Answer
- Static INI/YAML: perfect for small, stable estates and lab environments. Reviewed in Git, easy to read. Falls behind reality as soon as hosts change often.
- Dynamic (cloud plugins): the cloud API is the truth, so autoscaled and short-lived hosts are always correct. Grouping depends on tag discipline.
- CMDB-backed (ServiceNow, NetBox via
netbox.netbox.nb_inventory): fits large on-prem and network estates where a CMDB is already the record of what exists and who owns it.
Many companies combine them: dynamic for cloud, NetBox for network gear and data centres, with a small static file for special hosts. What matters is that each host has exactly one source of truth.
More on Architecture Decisions and Tool Comparisons
Ansible or Terraform: where do you draw the line?BeginnerHow does Ansible compare with Puppet, Chef and Salt?IntermediateWhy use Ansible instead of shell scripts?BeginnerWhere does Ansible fit once you run Kubernetes?Intermediatecloud-init or Ansible for first boot configuration?IntermediateWhen would you use AWS Systems Manager instead of, or together with, Ansible?Intermediate