44 lines
944 B
HCL
44 lines
944 B
HCL
variable "tenant_name" {
|
|
description = "Name of the tenant (used for database name and username)"
|
|
type = string
|
|
}
|
|
|
|
variable "admin_username" {
|
|
description = "PostgreSQL admin username"
|
|
type = string
|
|
default = "postgres"
|
|
}
|
|
|
|
variable "admin_password" {
|
|
description = "PostgreSQL admin password"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "server_ip" {
|
|
description = "VPS server IP address"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_user" {
|
|
description = "SSH user for connecting to VPS"
|
|
type = string
|
|
default = "fourlights"
|
|
}
|
|
|
|
variable "ssh_private_key_path" {
|
|
description = "Path to SSH private key for authentication"
|
|
type = string
|
|
}
|
|
|
|
variable "target_port" {
|
|
description = "PostgreSQL port on VPS"
|
|
type = number
|
|
default = 5432
|
|
}
|
|
|
|
variable "wait_on" {
|
|
description = "Resources to wait on before creating tenant"
|
|
type = any
|
|
default = true
|
|
} |