var.treafik copy-paste...

This commit is contained in:
Greyscale 2025-01-16 19:39:53 +01:00
parent 5e73523c38
commit d7527a11e4
Signed by: grey
GPG key ID: DDB392AE64B32D89
8 changed files with 58 additions and 65 deletions
products
dex
forgejo/forgejo
homeassistant
minio
pgbackweb
portainer/ui
postgres
yarr

View file

@ -23,10 +23,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -69,10 +69,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -41,10 +41,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -20,10 +20,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -40,10 +40,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -19,10 +19,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}

View file

@ -4,7 +4,7 @@ variable "postgres_image" {
description = "The docker image to use for the postgres service."
}
variable "postgres_version" {
default = "latest"
default = "17"
type = string
description = "The version of the docker image to use for the postgres service."
}
@ -53,7 +53,7 @@ variable "ports" {
condition = alltrue([for port in var.ports : port.container >= 1 && port.container <= 65535])
}
validation {
error_message = "protocol must be either 'tcp' or 'udp'."
error_message = "Protocol must be either 'tcp' or 'udp'."
condition = alltrue([for port in var.ports : port.protocol == "tcp" || port.protocol == "udp"])
}
}

View file

@ -23,10 +23,9 @@ variable "traefik" {
non-ssl = optional(bool, true)
ssl = optional(bool, false)
rule = optional(string)
network = optional(object({
name = string
id = 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."
}