This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
baremetal: use templatefile instead of template_file data source
This commit changes the template method we use in baremetal Terraform code responsible for generating workers Ignition configs from template_file data source coming from 3rd party Terraform provider to built-in 'templatefile' function, which is available from Terraform 0.12, as it provides the exact same functionality, but do not require downloading 3rd party provider. Also 'template' provider recommends using this function: https://www.terraform.io/docs/providers/template/d/file.html. This also allows passing parameters to the template in complex types (like lists) and call functions like 'join' inside the template, which better separates data from how they are rendered. Part of #196 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
- Loading branch information