55 lines
1.2 KiB
HCL
55 lines
1.2 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"
|
|
"retention" = {
|
|
"keepDaily" = 14
|
|
"keepMonthly" = 12
|
|
"keepWeekly" = 6
|
|
"keepYearly" = 12
|
|
}
|
|
"schedule" = {
|
|
"backup" = "30 3 * * *"
|
|
"check" = "30 5 * * 1"
|
|
"db" = "30 3 * * *"
|
|
"prune" = "30 1 * * 0"
|
|
}
|
|
"secret_key" = "s3-secret"
|
|
"secret_name" = "backup-settings"
|
|
"use_barman" = false
|
|
}
|
|
type = object({
|
|
enable = optional(bool),
|
|
endpoint = optional(string),
|
|
key_id_key = optional(string),
|
|
restic_key = optional(string),
|
|
retention = optional(object({
|
|
keepDaily = optional(number),
|
|
keepMonthly = optional(number),
|
|
keepWeekly = optional(number),
|
|
keepYearly = optional(number)
|
|
})),
|
|
schedule = optional(object({
|
|
backup = optional(string),
|
|
check = optional(string),
|
|
prune = optional(string)
|
|
})),
|
|
secret_key = optional(string),
|
|
secret_name = optional(string),
|
|
use_barman = optional(bool)
|
|
})
|
|
} |