diff options
author | ksaito1125 <ksaito11@gmail.com> | 2023-03-06 19:51:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 19:51:35 +0300 |
commit | 3e6ee966baed62e195091bb4ea7fb11cd8668868 (patch) | |
tree | d77ee1da7b9cc738c535d8c68c9e1edad89aaefd /src/terraform/install.sh | |
parent | 3cc059ea8abf3a909468fafabca481f82b6f8924 (diff) |
Terraform: Add proxy setting (#435) (#451)feature_terraform_1.3.0
* Terraform: Add proxy setting (#435)
* Terraform: Remove unused variable GPG_OPTS (#435)
* Terraform: Increment minor version (#435)
* Update src/terraform/install.sh
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
* Add feature option
* Update src/terraform/devcontainer-feature.json
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
* Update src/terraform/devcontainer-feature.json
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
* Update src/terraform/devcontainer-feature.json
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
* Terraform: Change environment variables to upper case (#435)
* Terraform: Use HTTP_PROXY as the default for connecting to keyservers (#435)
* Update src/terraform/install.sh
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
---------
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
Diffstat (limited to 'src/terraform/install.sh')
-rwxr-xr-x | src/terraform/install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/terraform/install.sh b/src/terraform/install.sh index 67426cd..75653c3 100755 --- a/src/terraform/install.sh +++ b/src/terraform/install.sh @@ -28,9 +28,10 @@ TERRAFORM_DOCS_SHA256="${TERRAFORM_DOCS_SHA256:-"automatic"}" TERRAFORM_GPG_KEY="72D7468F" TFLINT_GPG_KEY_URI="https://raw.githubusercontent.com/terraform-linters/tflint/master/8CE69160EB3F2FE9.key" -GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com +GPG_KEY_SERVERS="keyserver hkps://keyserver.ubuntu.com keyserver hkps://keys.openpgp.org -keyserver hkp://keyserver.pgp.com" +keyserver hkps://keyserver.pgp.com" +KEYSERVER_PROXY="${HTTPPROXY:-"${HTTP_PROXY:-""}"}" architecture="$(uname -m)" case ${architecture} in @@ -53,6 +54,9 @@ receive_gpg_keys() { if [ ! -z "$2" ]; then keyring_args="--no-default-keyring --keyring $2" fi + if [ ! -z "${KEYSERVER_PROXY}" ]; then + keyring_args="${keyring_args} --keyserver-options http-proxy=${KEYSERVER_PROXY}" + fi # Use a temporary location for gpg keys to avoid polluting image export GNUPGHOME="/tmp/tmp-gnupg" |