Commit Graph

4 Commits

Author SHA1 Message Date
4138fef307 feat: tenant, named, vrf, domain, cluster and site filters
one filter option plus its value, set in config or via
NETBOX_INVENTORY_FILTER / NETBOX_INVENTORY_FILTER_VALUE:
- tenant (both sources), resolved by name server-side
- named (ip-addresses), only addresses with a DNS name, deduplicated
- vrf (ip-addresses), resolved by name server-side
- domain (both sources), hostname ends with the domain
- cluster, site (virtual-machines), resolved by name server-side
2026-08-25 13:10:12 +02:00
43cab4e7d8 feat: ip address and virtual machine inventory sources
hosts land in a single "netbox" group with hostvars under _meta; IP
addresses use the DNS name as inventory hostname when set, virtual
machines expose their primary IP as ansible_host when they have one.
2026-08-25 13:09:33 +02:00
7912dacf95 feat: configuration loading and netbox api client
config.yaml next to the script (or $NETBOX_INVENTORY_CONFIG) with environment
variable overrides, requests session with token auth, paginated list fetching
and readable error reporting.
2026-08-25 13:09:09 +02:00
44e7dd50b5 first commit 2026-08-25 13:08:30 +02:00