Datacenter awareness #1
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think it's mandatory to create the
Device
(chassis / blade / server) within a datacenter and if possible within a rack.The problem is that there's no generic way to get these infos because it's not a standard like
dmidecode
. Each company has its own nomenclature and from what I can see, the info can be in:web-42.nyc
)/etc/server_infos
)salt-call grains.get datacenter
)curl https://other-api.internal.company.com/server?service_tag=XXX | jq -r .datacenter
)Since netbox_agent needs to be as generic as possible, we cannot put this kind of code in the project.
We may need a configuration file for the agent (http proxy, netbox URL, api_key and so on), so we could do something like:
DATACENTER_LOCATION = '<driver>:<location>'
Some examples could be:
and a
DATACENTER_LOCATION_REGEX
that would extract the slug/name of the datacenter within the output.People could add a new "driver" if needed.
Ideas?