Cloudbase init update automation

penguinuser

Member
Jun 9, 2023
1
0
6
I manage several Windows templates built by Cloudbase init.
Currently, I update the templates manually by cloning the template to a new VM, doing the Windows updates, reinstalling the Cloudbase init software, and converting it to a template again. The environment is Proxmox.
I am aiming to use Jenkins + Ansible + PowerShell + Ansible for Windows.
Has somebody successfully automated the updating of the templates?

My idea is:
1 Jenkins job to run this automation at a specific time.
2 Ansible to connect with Proxmox, clone a VM from the current template, and start it.
3 Log in to the VM via Ansible for Windows.
4 Run the Windows updates by a PowerShell script.
5 Via Ansible stop and convert the VM to a template.
 
Last edited: