++ fix duplicate required providers for brusnika-stage rabbitmq
Some checks failed
Terraform Terragrunt (contour) / validate (push) Failing after 24s
Terraform Terragrunt (contour) / plan (push) Has been skipped
Terraform Terragrunt (contour) / apply (push) Has been skipped

This commit is contained in:
Kochetkov S 2026-08-07 12:13:13 +03:00
parent e6b02d42c5
commit 044a0f7adf

View File

@ -40,9 +40,17 @@ terraform {
vault = { source = "hashicorp/vault", version = "~> 4.2" }
kafka = { source = "Mongey/kafka", version = "0.10.4" }
postgresql = { source = "cyrilgdn/postgresql", version = "~> 1.21" }
%{if !(path_relative_to_include() == "rabbitmq" && get_env("INFRA_ENV", "") == "brusnika-stage")~}
# rabbitmq module >= v1.0.0 (brusnika-stage only, terraform-modules/rabbitmq)
# declares its own required_providers - excluded here for that one unit to
# avoid "Duplicate required providers configuration". Every other unit and
# every other environment keeps this entry unchanged.
rabbitmq = { source = "cyrilgdn/rabbitmq", version = "~> 1.8" }
%{endif~}
minio = { source = "aminueza/minio", version = "~> 2.0" }
%{if !(path_relative_to_include() == "rabbitmq" && get_env("INFRA_ENV", "") == "brusnika-stage")~}
random = { source = "hashicorp/random", version = "~> 3.1" }
%{endif~}
tls = { source = "hashicorp/tls", version = "~> 4.0" }
}
}