Files
kydah-modules/postgresql/variables.tf
Xavier Mortelette e8d1c4e86a Reafacto OAuth2
Add roles mappings
Remove legacy groups
2025-01-06 18:14:31 +01:00

68 lines
1.4 KiB
HCL

variable "component" {
type = string
}
variable "instance" {
type = string
}
variable "namespace" {
type = string
}
variable "labels" {
type = map(string)
}
variable "backups" {
default = {
"enable" = false
"endpoint" = ""
"key_id_key" = "s3-id"
"restic_key" = "bck-password"
"schedule" = {
"db" = "30 3 * * *"
}
"secret_key" = "s3-secret"
"secret_name" = "backup-settings"
"use_barman" = false
}
type = object({
enable = optional(bool, false),
endpoint = optional(string, ""),
key_id_key = optional(string, "s3-id"),
restic_key = optional(string, "bck-password"),
schedule = optional(object({
db = string,
}), { db = "30 3 * * *" }),
secret_key = optional(string, "s3-secret"),
secret_name = optional(string, "backup-settings"),
use_barman = optional(bool, false)
})
}
variable "images" {
type = object({
postgresql = optional(object({
registry = optional(string),
repository = optional(string),
tag = optional(number)
})),
})
default = {
"postgresql" = {
"registry" = "ghcr.io"
"repository" = "cloudnative-pg/postgresql"
"tag" = 15.3
}
}
}
variable "replicas" {
type = number
default = 1
}
variable "storage" {
type = object({
size = optional(string)
})
default = {
"size" = "5Gi"
}
}