var.treafik copy-paste...
This commit is contained in:
parent
5e73523c38
commit
d7527a11e4
8 changed files with 58 additions and 65 deletions
|
@ -18,15 +18,14 @@ variable "placement_constraints" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,15 +64,14 @@ variable "database_storage_path" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
|
@ -36,15 +36,14 @@ variable "placement_constraints" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
|
@ -15,15 +15,14 @@ variable "networks" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,15 +35,14 @@ variable "networks" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
|
@ -14,15 +14,14 @@ variable "networks" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ variable "postgres_image" {
|
||||||
description = "The docker image to use for the postgres service."
|
description = "The docker image to use for the postgres service."
|
||||||
}
|
}
|
||||||
variable "postgres_version" {
|
variable "postgres_version" {
|
||||||
default = "latest"
|
default = "17"
|
||||||
type = string
|
type = string
|
||||||
description = "The version of the docker image to use for the postgres service."
|
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])
|
condition = alltrue([for port in var.ports : port.container >= 1 && port.container <= 65535])
|
||||||
}
|
}
|
||||||
validation {
|
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"])
|
condition = alltrue([for port in var.ports : port.protocol == "tcp" || port.protocol == "udp"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,15 +18,14 @@ variable "placement_constraints" {
|
||||||
variable "traefik" {
|
variable "traefik" {
|
||||||
default = null
|
default = null
|
||||||
type = object({
|
type = object({
|
||||||
domain = string
|
domain = string
|
||||||
port = optional(number)
|
port = optional(number)
|
||||||
non-ssl = optional(bool, true)
|
non-ssl = optional(bool, true)
|
||||||
ssl = optional(bool, false)
|
ssl = optional(bool, false)
|
||||||
rule = optional(string)
|
rule = optional(string)
|
||||||
network = optional(object({
|
middlewares = optional(list(string))
|
||||||
name = string
|
network = optional(object({ name = string, id = string }))
|
||||||
id = string
|
basic-auth-users = optional(list(string))
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
description = "Whether to enable traefik for the service."
|
description = "Whether to enable traefik for the service."
|
||||||
}
|
}
|
Loading…
Reference in a new issue