47 lines
1.2 KiB
HCL
47 lines
1.2 KiB
HCL
output "host" {
|
|
description = "RabbitMQ connection host (via SSH tunnel)"
|
|
value = var.server_ip
|
|
}
|
|
|
|
output "port" {
|
|
description = "RabbitMQ AMQP connection port"
|
|
value = 5672
|
|
}
|
|
|
|
output "management_host" {
|
|
description = "RabbitMQ Management API host (via SSH tunnel)"
|
|
value = module.ssh_tunnel.host
|
|
}
|
|
|
|
output "management_port" {
|
|
description = "RabbitMQ Management API port (via SSH tunnel)"
|
|
value = module.ssh_tunnel.port
|
|
}
|
|
|
|
output "vhost" {
|
|
description = "Virtual host name"
|
|
value = rabbitmq_vhost.tenant_vhost.name
|
|
}
|
|
|
|
output "username" {
|
|
description = "RabbitMQ username"
|
|
value = rabbitmq_user.tenant_user.name
|
|
}
|
|
|
|
output "password" {
|
|
description = "RabbitMQ password"
|
|
value = random_password.tenant_password.result
|
|
sensitive = true
|
|
}
|
|
|
|
output "connection_string" {
|
|
description = "RabbitMQ AMQP connection string"
|
|
value = "amqp://${rabbitmq_user.tenant_user.name}:${random_password.tenant_password.result}@${var.server_ip}:5672/${rabbitmq_vhost.tenant_vhost.name}"
|
|
sensitive = true
|
|
}
|
|
|
|
output "installed" {
|
|
description = "Installation complete flag"
|
|
value = true
|
|
depends_on = [rabbitmq_vhost.tenant_vhost, rabbitmq_user.tenant_user, rabbitmq_permissions.tenant_permissions]
|
|
} |