5bcf93c37d
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
25 lines
572 B
ReStructuredText
25 lines
572 B
ReStructuredText
Install terraform
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: terraform_install_dir
|
|
:default: {{ ansible_user_dir }}/.local/bin/
|
|
|
|
Directory to install terraform in.
|
|
|
|
.. zuul:rolevar:: terraform_version
|
|
:default: 0.12.26
|
|
|
|
Version of terraform to install.
|
|
Zuul will skip the installation if this matches an already installed version of terraform.
|
|
|
|
.. zuul:rolevar:: terraform_os
|
|
:default: {{ ansible_system | lower }}
|
|
|
|
OS target of package to install.
|
|
|
|
.. zuul:rolevar:: terraform_arch
|
|
:default: amd64 / 386
|
|
|
|
Architecture target of package to install.
|