netbox: url: 'http://netbox.internal.company.com' token: supersecrettoken network: ignore_interfaces: "(dummy.*|docker.*)" ignore_ips: (127\.0\.0\..*) # enable auto-cabling lldp: true datacenter_location: driver: "cmd:cat /etc/qualification | tr [a-z] [A-Z]" regex: "DATACENTER: (?P[A-Za-z0-9]+)" # driver: 'cmd:lldpctl' # regex: 'SysName: .*\.([A-Za-z0-9]+)' # # driver: "file:/tmp/datacenter" # regex: "(.*)" rack_location: # driver: 'cmd:lldpctl' # match SysName: sw-dist-a1.dc42 # regex: 'SysName:[ ]+[A-Za-z]+-[A-Za-z]+-([A-Za-z0-9]+)' # # driver: "file:/tmp/datacenter" # regex: "(.*)" # Some servers dont report the slot, since most people put it in the hostname # here's a way to extract it and maintain correct slot location in Netbox # slot_location: # driver: 'cmd:hostname' # regex: '.*-(\d+)' inventory: true