Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-08-04 09:16:00 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-08-05 13:23:58 +0300
commitc8a262dd74e9538d2a60db771d7902b72c623a06 (patch)
tree57bc5eef07819ef4d58382265afc138b659308b7 /_support
parent5b296c0be8158e973fa1b916542f20ddff8b6c9b (diff)
terraform: Fix fetching modules
Starting with commit 36437f18 (PgBouncer deployment with terraform, 2020-07-29), we've introduced a new dependency on the pgbouncer module for Terraform. To download the module, the commit in question added a call to `terraform get`, which causes us to download the module. But as we're only executing `terraform init` in case no `.terraform` directory exists and `terraform get` will unconditionally create that directory, the result is that `terraform init` will never be executed. Fix the issue by just removing the call to `terraform get`. Initialization will fetch the pgbouncer module anyway, so there's no need to do it explicitly.
Diffstat (limited to '_support')
-rwxr-xr-x_support/terraform/create-demo-cluster2
1 files changed, 0 insertions, 2 deletions
diff --git a/_support/terraform/create-demo-cluster b/_support/terraform/create-demo-cluster
index 1e8a57e3c..a9aaa974c 100755
--- a/_support/terraform/create-demo-cluster
+++ b/_support/terraform/create-demo-cluster
@@ -16,8 +16,6 @@ def main
run!(%w[gcloud auth application-default login])
end
- run!(%w[terraform get])
-
unless terraform_initialized?
run!(%w[terraform init])
end