netbox-scripts

Stars
7

Newtelco Netbox Scripts

Custom scripts currently running in our Netbox instance.

1. Create VM on Proxmox

Place create_vm.py into the /netbox/netbox/scripts subfolder.

When opening in Netbox, you will have the ability to define the following fields:

  • VM Name
  • CPU Cores
  • RAM
  • Disk Size
  • DNS Hostname
  • Cluster
  • Notes

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.

2. Netpalm Service Template

Primary goal of this is to generate a list of interfaces in a format Netbox can understand for importing.

License

MIT