A quick and dirty integration for onboarding docker containers into netbox. It needs more work but it is in a working state.
[x] Connect to docker instances, through socket or http, using docker-py
[x] Create and associate containers using Virtualization assets for Device X
[x] Each docker instance is associated as a Virtualization Cluster for a Device X
[X] Cluster gets a separate IPAM VRF for all associated VMs/Services
[x] Non-compose containers create a Virtual Machine called Docker Standalone
[x] composed containers create a Virtual Machine called Docker Compose [compose project name]
[ ] Config setting to disable/enable this behavior
[X] Docker networks are created as Virtual Interfaces
[x] Created with IP Ranges based on network subnet
[x] Associated to compose/bridge VM
[X] Containers created/updated as IPAM Service
[X] Associated to VM
[x] Creates IP address w/ VRF
[X] Ports and Protocol updated on each run
[X] Handles containers on the host docker network
I haven't decided if this is this the best way to organize containers yet as I haven't seen much guidance around docker and netbox in general. Feedback is welcome.
A quick and dirty integration for onboarding docker containers into netbox. It needs more work but it is in a working state.
docker-py
Device X
Device X
Docker Standalone
Docker Compose [compose project name]
host
docker networkI haven't decided if this is this the best way to organize containers yet as I haven't seen much guidance around docker and netbox in general. Feedback is welcome.