0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 18:42:58 +00:00
terraform-provider-proxmox/.devcontainer/post-attach.sh
Björn Brauer daaedf2d99
feat(devcontainer): configure provider override in post attach command (#1481)
* feat(devcontainer): update terraform version
* refactor(devcontainer): move post attach command to separate script
* feat(devcontainer): configure provider override in post attach command


---------

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>
2024-08-12 19:20:35 -04:00

20 lines
492 B
Bash

#!/usr/bin/bash
# Workaround for https://github.com/orgs/community/discussions/75161
unset GIT_COMMITTER_NAME
unset GIT_COMMITTER_EMAIL
cat <<EOF > ~/.terraformrc
provider_installation {
dev_overrides {
"bpg/proxmox" = "${GOPATH}/bin/"
}
# For all other providers, install them directly from their origin provider
# registries as normal. If you omit this, Terraform will _only_ use
# the dev_overrides block, and so no other providers will be available.
direct {}
}
EOF