zuul-jobs/roles/packer/README.rst
Albin Vass 5bcf93c37d Terraform roles and jobs.
Adds terraform roles to install and execute terraform.

Supports adding an override.tf file to override configuration in CI
which is useful to let zuul handle module reposity authentication
instead of setting up credentials on the remote during the job.

Also returns the execution plan back as a comment for 'terraform plan'
to make it easy for reviewers.

Change-Id: I3b4f2bac7f055a0c0f9cb7888b4146ac9c007d25
2020-06-11 17:26:50 +02:00

33 lines
755 B
ReStructuredText

Run packer command. Assumes the appropriate version of packer has been installed.
**Role Variables**
.. zuul:rolevar:: packer_executable
:default: {{ ansible_user_dir }}/.local/bin/packer
Path to packer executable to use.
.. zuul:rolevar:: packer_command
:default: build
Packer command to run.
Examples are "build", "validate"
.. zuul:rolevar:: packer_template
:default: packer.json
Packer template file to use when executing packer.
.. zuul:rolevar:: packer_extra_args
String of extra command line options to pass to packer.
.. zuul:rolevar:: packer_environemnt
Environment variables to set in packer command.
.. zuul:rolevar:: packer_workdir
:default: {{ zuul.project.src_dir }}
Directory to run packer in.