Supermicro server can guess their slot via the config file (#50)

This commit is contained in:
Solvik 2019-08-29 16:13:04 +02:00 committed by GitHub
commit 0faee59bde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 1 deletions

View file

@ -25,4 +25,10 @@ rack_location:
# 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