vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
149 stars 33 forks source link

Pre download terraform cli to Jenkins and use `TF_ACC_TERRAFORM_PATH` to prevent disk space issues #283

Closed ddelnano closed 6 months ago

ddelnano commented 6 months ago

Summary: Pre download terraform cli to Jenkins and use TF_ACC_TERRAFORM_PATH to prevent disk space issues

The terraform-plugin-sdk has the ability to automatically download a given terraform version when running acceptance tests. This seemed extremely flexible from the beginning, but it causes /tmp to fill up with multiple copies of the same cli (a given version is installed on each test run).

This also opens up the ability to add opentofu builds and will be completed in an upcoming PR.

Test plan: Build should succeed and not run Jenkins out of disk space