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)
53 lines
1.2 KiB
HCL
53 lines
1.2 KiB
HCL
variable "cluster_id" {
|
|
description = "ID существующего PostgreSQL кластера в Yandex Cloud"
|
|
type = string
|
|
}
|
|
|
|
variable "database_name" {
|
|
description = "Имя базы данных"
|
|
type = string
|
|
}
|
|
|
|
variable "user_name" {
|
|
description = "Имя пользователя"
|
|
type = string
|
|
}
|
|
|
|
variable "password_length" {
|
|
description = "Длина пароля"
|
|
type = number
|
|
default = 32
|
|
}
|
|
|
|
variable "password_special" {
|
|
description = "Использовать специальные символы в пароле"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "lc_collate" {
|
|
description = "LC_COLLATE для базы данных"
|
|
type = string
|
|
default = "en_US.UTF-8"
|
|
}
|
|
|
|
variable "lc_type" {
|
|
description = "LC_TYPE для базы данных"
|
|
type = string
|
|
default = "en_US.UTF-8"
|
|
}
|
|
|
|
variable "extensions" {
|
|
description = "Список расширений PostgreSQL"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "permissions" {
|
|
description = "Права доступа пользователя"
|
|
type = list(object({
|
|
database_name = string
|
|
}))
|
|
default = []
|
|
}
|