add datacenter location awareness with pseudo-driver (cmd and file)

This commit is contained in:
Solvik Blum 2019-08-04 01:11:53 +02:00
commit 8b8cd68ff2
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
7 changed files with 84 additions and 18 deletions

View file

@ -0,0 +1,9 @@
netbox:
url: 'http://netbox.internal.company.com'
token: supersecrettoken
datacenter_location:
driver: file:/etc/qualification
regex: "datacenter: (?P<datacenter>[A-Za-z0-9]+)"
# driver: 'cmd:lldpctl'
# regex = 'SysName: .*\.(?P<datacenter>[A-Za-z0-9]+)'