I have been kind of quiet lately, but that doesn’t mean that I haven’t been busy. Quite the opposite in fact! After my summer holiday (vacation) I was working on another project for which I needed to test with machines created with static IP addresses. If you’re at all familiar with VMware VCF Automation (formerly VMware Aria Automation) then you know that you can use its built-in IPAM provider to hand out static IP addresses to provisioned VMs fairly easily. Since I have phpIPAM running in my homelab though, I thought that it’s be nicer to integrate with that.
A bit of searching later and I had found a couple of older implementations that hadn’t been updated for some time. One didn’t seem to install or work properly and documentation was very thin on the ground. Inevitably I got a little sidetracked from my original work and started looking at the IPAM SDK for VCF Automation and the API Guide for phpIPAM. Could I do better and brush up on my Python programming skills at the same time?
The answer was yes, and I made sure to write some slighty more comprehensive documentation too!
Once I had a basic version working, I wanted to make sure that it was possible to filter networks as well as enable on-demand networking in conjunction with VMware NSX as well. In the end there are a number of customisable options available.
Overall I’m very pleased with the finished solution. I’ve been meaning to write about it for a couple of months now, but then I got sidetracked by what I was originally trying to do again! So now I’m presenting it as an end of year gift to anyone that uses VCF Automation 8.x and would like to use phpIPAM as well. Just head to the repository below to get started.
This integration allows VMware VCF Automation 8.x to use phpIPAM for assigning static IP addresses to provisioned virtual machines and on-demand networks.