Custom scripts currently running in our Netbox instance.
Place create_vm.py
into the /netbox/netbox/scripts
subfolder.
When opening in Netbox, you will have the ability to define the following fields:
After making sure 'Commit' is checked and submitting the form, Netbox will add the VM documentation and this script will talk to your Proxmox cluster via the proxmoxer
Python library to create the VM as well as the disk definition on the local-zfs
store of your chosen Proxmox host.
Primary goal of this is to generate a list of interfaces in a format Netbox can understand for importing.
MIT