diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-04 09:16:00 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-05 13:23:58 +0300 |
commit | c8a262dd74e9538d2a60db771d7902b72c623a06 (patch) | |
tree | 57bc5eef07819ef4d58382265afc138b659308b7 /_support | |
parent | 5b296c0be8158e973fa1b916542f20ddff8b6c9b (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-cluster | 2 |
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 |