From 1b1b50418a44246c32914e76865f273deeb79fc8 Mon Sep 17 00:00:00 2001 From: Alexey <34266885+v1km4n@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:14:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D1=85=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=B9=D0=B4=D0=B5=D1=80=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=20Ope?= =?UTF-8?q?nTofu=20(#13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexey Orlov --- .github/workflows/opentofu.yml | 15 +++++++++++++++ main.tf | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/opentofu.yml b/.github/workflows/opentofu.yml index 2fef6cd..3674451 100644 --- a/.github/workflows/opentofu.yml +++ b/.github/workflows/opentofu.yml @@ -24,6 +24,18 @@ jobs: with: tofu_version: 1.6.2 + - name: Add .tofurc + shell: bash + run: | + cat <> $HOME/.tofurc + provider_installation { + filesystem_mirror { + path = "$GITHUB_WORKSPACE/providers" + include = ["registry.terraform.io/*/*"] + } + } + EOS + - name: Lint OpenTofu run: tofu fmt -diff -check -recursive @@ -39,6 +51,9 @@ jobs: -backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" -backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" + - name: Chmod providers + run: chmod -R 777 $GITHUB_WORKSPACE/providers + - name: OpenTofu apply run: tofu apply -auto-approve diff --git a/main.tf b/main.tf index 500672a..8b0994f 100644 --- a/main.tf +++ b/main.tf @@ -129,7 +129,7 @@ module "mks" { gpu_ng_volume_gb = [100] gpu_ng_volume_type = ["fast"] gpu_ng_labels = [{ "role" : "gpu" }] - gpu_ng_flavor = ["3041"] + gpu_ng_flavor = ["3021"] nat_subnet_cidr = "10.222.0.0/16" enable_autorepair = false