Packer Roles

ensure-packer

Install packer

Role Variables

packer_install_dir
Default: {{ ansible_user_dir }}/.local/bin/

Directory to install packer in.

packer_version
Default: 1.5.5

Version of packer to install. Zuul will skip the installation if this matches an already installed version of packer.

packer_os
Default: {{ ansible_system | lower }}

OS target of package to install.

packer_arch
Default: amd64 / 386

Architecture target of package to install.

packer

Run packer command. Assumes the appropriate version of packer has been installed.

Role Variables

packer_executable
Default: {{ ansible_user_dir }}/.local/bin/packer

Path to packer executable to use.

packer_command
Default: build

Packer command to run. Examples are “build”, “validate”

packer_template
Default: packer.json

Packer template file to use when executing packer.

packer_extra_args

String of extra command line options to pass to packer.

packer_environemnt

Environment variables to set in packer command.

zuul_workdir
Default: {{ zuul.project.src_dir }}

Directory to run packer in.