This repository contains Packer template definitions for building images for use with Azimuth.
Currently, templates are provided for building Ubuntu and Windows images that provide web console functionality for Azimuth.
The templates work by provisioning machines in an OpenStack project and configuring them using Ansible before converting to an image. The result is a private image in the OpenStack project.
Before building an image, you must configure OpenStack authentication, using
either an RC file or clouds.yaml
, e.g.:
export OS_CLOUD=openstack
Ansible must be installed on the machine that executes Packer, and the required collections must be installed:
ansible-galaxy install -f -r ./requirements.yml
The Packer templates are in the packer directory of this repository.
To build an image, just run the following packer
command:
packer build --on-error=ask -var-file=./inputs.pkvars.hcl packer/{linux,windows}-webconsole.pkr.hcl
Check the Packer template for the available/required inputs.