Hi,
I'm trying to work out ways we can streamline our processes for at least creating new virtual machines on our Proxmox cluster.
At the moment, we've got a set of VMs (templates) that are cloned to make new VMs; the team has to log in via a console and then run a script which sets a bunch of things in /etc/ config, including the correct IP, and then they change the VLAN via the hardware tab, reboot and the VM comes online.
Once rebooted, they run an ansible playbook that does the rest of the installation for things like Debian packages, config changes etc.
What would be the best approach for automating the first bit of this? I've seen a few modules for Ansible that allow for some manipulation of VMs, but I'm unsure as there are articles/resources all over the place.
I could technically move the VM-based script to ansible, but then we still need to clone our VM template, get its IP address, and change the VLAN.
Any thoughts would be appreciated.
I'm trying to work out ways we can streamline our processes for at least creating new virtual machines on our Proxmox cluster.
At the moment, we've got a set of VMs (templates) that are cloned to make new VMs; the team has to log in via a console and then run a script which sets a bunch of things in /etc/ config, including the correct IP, and then they change the VLAN via the hardware tab, reboot and the VM comes online.
Once rebooted, they run an ansible playbook that does the rest of the installation for things like Debian packages, config changes etc.
What would be the best approach for automating the first bit of this? I've seen a few modules for Ansible that allow for some manipulation of VMs, but I'm unsure as there are articles/resources all over the place.
I could technically move the VM-based script to ansible, but then we still need to clone our VM template, get its IP address, and change the VLAN.
Any thoughts would be appreciated.