2019-08-04 01:11:53 +02:00
|
|
|
netbox:
|
|
|
|
url: 'http://netbox.internal.company.com'
|
|
|
|
token: supersecrettoken
|
2020-07-11 15:27:32 +02:00
|
|
|
# uncomment to disable ssl verification
|
|
|
|
# ssl_verify: false
|
2019-08-04 01:11:53 +02:00
|
|
|
|
2019-08-09 12:08:11 +02:00
|
|
|
network:
|
|
|
|
ignore_interfaces: "(dummy.*|docker.*)"
|
|
|
|
ignore_ips: (127\.0\.0\..*)
|
2019-08-26 11:05:41 +02:00
|
|
|
# enable auto-cabling
|
|
|
|
lldp: true
|
2019-08-09 12:08:11 +02:00
|
|
|
|
2020-07-01 18:54:58 +02:00
|
|
|
#
|
|
|
|
# You can use these to change the roles.
|
|
|
|
#
|
|
|
|
#device:
|
|
|
|
# chassis_role: "Server Chassis"
|
|
|
|
# blade_role: "Blade"
|
|
|
|
# server_role: "Server"
|
|
|
|
# tags: server, blade, ,just a comma,delimited,list
|
2022-02-16 11:22:51 +01:00
|
|
|
# custom_fields: field1=value1,field2=value2
|
|
|
|
#
|
2020-07-01 18:54:58 +02:00
|
|
|
#
|
|
|
|
# Use this to set the tenant
|
|
|
|
#
|
|
|
|
#tenant:
|
|
|
|
# driver: "file:/tmp/tenant"
|
|
|
|
# regex: "(.*)"
|
2022-02-16 11:22:51 +01:00
|
|
|
|
2019-08-04 01:11:53 +02:00
|
|
|
datacenter_location:
|
2020-07-28 18:42:10 +02:00
|
|
|
driver: "cmd:cat /etc/qualification | tr [A-Z] [a-z]"
|
|
|
|
regex: "datacenter: (?P<datacenter>[A-Za-z0-9]+)"
|
2019-08-04 01:11:53 +02:00
|
|
|
# driver: 'cmd:lldpctl'
|
2019-08-04 19:51:36 +02:00
|
|
|
# regex: 'SysName: .*\.([A-Za-z0-9]+)'
|
|
|
|
#
|
|
|
|
# driver: "file:/tmp/datacenter"
|
2019-08-05 11:54:06 +02:00
|
|
|
# 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"
|
2019-08-26 16:54:48 +02:00
|
|
|
# regex: "(.*)"
|
|
|
|
|
2019-08-29 16:13:04 +02:00
|
|
|
# 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+)'
|
|
|
|
|
2019-08-26 16:54:48 +02:00
|
|
|
inventory: true
|