diff --git a/infra/.gitlab/.gitlab-ci.yml b/infra/.gitlab/.gitlab-ci.yml index 5e8b015..63301da 100644 --- a/infra/.gitlab/.gitlab-ci.yml +++ b/infra/.gitlab/.gitlab-ci.yml @@ -33,7 +33,7 @@ format: - tofu fmt -diff -check -write=false rules: - changes: - - .tf + - "infra/terraform/*.tf" validate: stage: .pre @@ -43,7 +43,7 @@ validate: - tofu validate rules: - changes: - - .tf + - "infra/terraform/*.tf" plan-infrastructure: stage: plan @@ -64,7 +64,7 @@ plan-infrastructure: needs: ["validate","format"] rules: - changes: - - .tf + - "infra/terraform/*.tf" apply-infrastructure: stage: apply @@ -76,7 +76,7 @@ apply-infrastructure: - tofu apply -auto-approve $ARGUMENTS rules: - changes: - - .tf + - "infra/terraform/*.tf" when: manual needs: ["plan-infrastructure"] @@ -90,6 +90,6 @@ destroy-infrastructure: - tofu destory -auto-approve $ARGUMENTS rules: - changes: - - .tf + - "infra/terraform/*.tf" when: manual needs: ["plan-infrastructure"] diff --git a/infra/terraform/main.tf b/infra/terraform/main.tf index 31aebd8..e0ff3ec 100644 --- a/infra/terraform/main.tf +++ b/infra/terraform/main.tf @@ -9,7 +9,7 @@ terraform { } provider "proxmox" { - pm_parallel = 1 + pm_parallel = 3 pm_tls_insecure = true pm_api_url = var.pm_api_url pm_user = var.pm_user