Opinionated.tf/products/pgbackweb/inputs.tf
2025-02-14 21:29:33 +01:00

53 lines
No EOL
1.5 KiB
HCL

variable "enable" {
type = bool
description = "Whether to enable the service or merely provision it."
default = true
}
variable "pgbackweb_image" {
default = "eduardolat/pgbackweb"
type = string
description = "The image to use for the pgbackweb service"
}
variable "pgbackweb_version" {
default = "latest"
type = string
description = "The version of the pgbackweb image to use"
}
variable "stack_name" {
default = "backup"
type = string
description = "The name of the stack to create."
}
variable "service_name" {
default = "pgbackweb"
type = string
description = "The name of the service to create."
}
variable "placement_constraints" {
default = []
type = list(string)
description = "Docker Swarm placement constraints"
}
variable "networks" {
type = list(object({
name = string
id = string
}))
default = []
description = "A list of network names to attach the service to."
}
variable "traefik" {
default = null
type = object({
domain = string
port = optional(number)
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
middlewares = optional(list(string))
network = optional(object({ name = string, id = string }))
basic-auth-users = optional(list(string))
})
description = "Whether to enable traefik for the service."
}