Packer is a solution from HashiCorp to automate system and container image builds.
I have used it in combination with Ansible to automate builds of virtual machine images for the worker nodes of the high-performance computing cluster behind Galaxy.