mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
- Add infrastructure.yaml as single source of truth (like values.yaml in Helm) - Make all modules universal (no hardcoded entity names) - Use existing PostgreSQL cluster instead of creating new one - Add yc-database module for working with existing PostgreSQL - Add k8s-secret module with lifecycle.ignore_changes support - Update terragrunt.hcl files to read from infrastructure.yaml - Remove scripts, use native Terragrunt functions (yamldecode)
36 lines
894 B
HCL
36 lines
894 B
HCL
output "cluster_id" {
|
|
description = "ID кластера PostgreSQL"
|
|
value = var.cluster_id
|
|
}
|
|
|
|
output "cluster_fqdn" {
|
|
description = "FQDN кластера PostgreSQL"
|
|
value = data.yandex_mdb_postgresql_cluster.existing.host[0].fqdn
|
|
}
|
|
|
|
output "host" {
|
|
description = "Host адрес кластера"
|
|
value = data.yandex_mdb_postgresql_cluster.existing.host[0].fqdn
|
|
}
|
|
|
|
output "port" {
|
|
description = "Порт кластера"
|
|
value = 6432
|
|
}
|
|
|
|
output "database_name" {
|
|
description = "Имя базы данных"
|
|
value = yandex_mdb_postgresql_database.this.name
|
|
}
|
|
|
|
output "user_name" {
|
|
description = "Имя пользователя"
|
|
value = yandex_mdb_postgresql_user.this.name
|
|
}
|
|
|
|
output "password" {
|
|
description = "Пароль пользователя"
|
|
value = random_password.user_password.result
|
|
sensitive = true
|
|
}
|