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
..
2020-06-11 17:26:50 +02:00
2020-06-11 17:26:50 +02:00
2020-06-11 17:26:50 +02:00

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

Role Variables

String of extra command line options to pass to terraform.

Name of the workspace to operate against. By default this will not be created if it does not exist.

List of override.tf files to create before initializing terraform. This is useful if a module should use the source from a required project that has been checked out by zuul instead of using a remote git repository.

Directory to put override.tf

Free form content of the override.tf file.