Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround Terraform v1.1 file provisioner regression #1093

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

dghubble
Copy link
Member

@dghubble dghubble commented Dec 28, 2021

  • Terraform v1.1 changed the behavior of provisioners and remote-exec in a way that breaks support for expansions in commands (including file provisioner, where destination is part of an scp command)
  • Terraform will likely revert the change eventually, but I suspect it will take a while
  • Instead, we can stop relying on Terraform's expansion behavior. /home/core is a suitable choice for $HOME on both Flatcar Linux and Fedora CoreOS (hardlink /var/home/core)

Rel: hashicorp/terraform#30243
Closes #1091

* Terraform v1.1 changed the behavior of provisioners and
`remote-exec` in a way that breaks support for expansions
in commands (including file provisioner, where `destination`
is part of an `scp` command)
* Terraform will likely revert the change eventually, but I
suspect it will take a while
* Instead, we can stop relying on Terraform's expansion
behavior. `/home/core` is a suitable choice for `$HOME` on
both Flatcar Linux and Fedora CoreOS (harldink `/var/home/core`)

Rel: hashicorp/terraform#30243
@dghubble dghubble merged commit 6ed048e into master Dec 28, 2021
@dghubble dghubble deleted the terraform-workaround branch December 28, 2021 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bare-metal and Fedora CoreOS - $HOME variable not expanded properly
1 participant