mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-10-19 14:31:36 +03:00
revert the contracts-compiler wiring in live/rabbitmq/terragrunt.hcl, it broke the wb pipeline — locals cannot reference dependency in terragrunt, and live/contracts was never pushed anyway, this experiment isn't finished yet
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
f57f154d83
commit
42c4e35291
@ -16,16 +16,6 @@ locals {
|
|||||||
)
|
)
|
||||||
|
|
||||||
env_config = try(local.infra_config.environments[local.env_name], {})
|
env_config = try(local.infra_config.environments[local.env_name], {})
|
||||||
|
|
||||||
contracts = dependency.contracts.outputs.rabbitmq_module_inputs
|
|
||||||
}
|
|
||||||
|
|
||||||
dependency "contracts" {
|
|
||||||
config_path = "../contracts"
|
|
||||||
mock_outputs = {
|
|
||||||
rabbitmq_module_inputs = { vhosts = [], users = [], permissions = [], queues = [] }
|
|
||||||
}
|
|
||||||
mock_outputs_allowed_terraform_commands = ["init", "validate", "plan", "state", "import"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
remote_state {
|
remote_state {
|
||||||
@ -64,12 +54,12 @@ inputs = {
|
|||||||
amqp_host = try(local.env_config.rabbitmq.amqp_host, "rabbitmq.rabbitmq.svc.cluster.local")
|
amqp_host = try(local.env_config.rabbitmq.amqp_host, "rabbitmq.rabbitmq.svc.cluster.local")
|
||||||
amqp_port = try(local.env_config.rabbitmq.amqp_port, 5672)
|
amqp_port = try(local.env_config.rabbitmq.amqp_port, 5672)
|
||||||
|
|
||||||
vhosts = concat(try(local.env_config.rabbitmq.vhosts, []), local.contracts.vhosts)
|
vhosts = try(local.env_config.rabbitmq.vhosts, [])
|
||||||
users = concat(try(local.env_config.rabbitmq.users, []), local.contracts.users)
|
users = try(local.env_config.rabbitmq.users, [])
|
||||||
permissions = concat(try(local.env_config.rabbitmq.permissions, []), local.contracts.permissions)
|
permissions = try(local.env_config.rabbitmq.permissions, [])
|
||||||
topic_permissions = try(local.env_config.rabbitmq.topic_permissions, [])
|
topic_permissions = try(local.env_config.rabbitmq.topic_permissions, [])
|
||||||
exchanges = try(local.env_config.rabbitmq.exchanges, [])
|
exchanges = try(local.env_config.rabbitmq.exchanges, [])
|
||||||
queues = concat(try(local.env_config.rabbitmq.queues, []), local.contracts.queues)
|
queues = try(local.env_config.rabbitmq.queues, [])
|
||||||
bindings = try(local.env_config.rabbitmq.bindings, [])
|
bindings = try(local.env_config.rabbitmq.bindings, [])
|
||||||
policies = try(local.env_config.rabbitmq.policies, [])
|
policies = try(local.env_config.rabbitmq.policies, [])
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user