92 lines
2.3 KiB
HCL
92 lines
2.3 KiB
HCL
variable "vigil_version" {
|
|
type = string
|
|
description = "The version of Vigil to deploy"
|
|
default = "v1.26.3"
|
|
}
|
|
variable "vigil_service_name" {
|
|
type = string
|
|
description = "The name of the Vigil service"
|
|
default = "vigil"
|
|
}
|
|
variable "docker_networks" {
|
|
type = list(object({
|
|
id = string,
|
|
name = string,
|
|
}))
|
|
description = "Docker networks to connect the vigil service to"
|
|
default = null
|
|
}
|
|
variable "notify_on_startup" {
|
|
type = bool
|
|
description = "Whether to send a startup notifications"
|
|
default = false
|
|
}
|
|
variable "notify_telegram" {
|
|
type = object({
|
|
token = string
|
|
channel = string
|
|
topic = optional(string, null)
|
|
})
|
|
description = "Telegram configuration"
|
|
default = null
|
|
}
|
|
variable "monitored_services" {
|
|
type = map(list(object({
|
|
id = string
|
|
label = string
|
|
endpoints = list(string)
|
|
http_method = optional(string, null)
|
|
http_status_healthy_below = optional(number, 400)
|
|
http_status_healthy_above = optional(number, 200)
|
|
})))
|
|
}
|
|
variable "page_title" {
|
|
type = string
|
|
description = "The title of the Vigil page"
|
|
default = "Vigil"
|
|
}
|
|
variable "page_url" {
|
|
type = string
|
|
description = "The URL of the Vigil page"
|
|
default = "https://vigil.example.com"
|
|
}
|
|
variable "company_name" {
|
|
type = string
|
|
description = "The name of the company"
|
|
default = "ExampleCo"
|
|
}
|
|
variable "icon_color" {
|
|
type = string
|
|
description = "The color of the icon"
|
|
default = "#1972F5"
|
|
}
|
|
variable "icon_url" {
|
|
type = string
|
|
description = "The URL of the icon"
|
|
default = "https://example.com/icon.png"
|
|
}
|
|
variable "logo_color" {
|
|
type = string
|
|
description = "The color of the logo"
|
|
default = "#1972F5"
|
|
}
|
|
variable "logo_url" {
|
|
type = string
|
|
description = "The URL of the logo"
|
|
default = "https://example.com/logo.png"
|
|
}
|
|
variable "website_url" {
|
|
type = string
|
|
description = "The URL of the website"
|
|
default = "https://example.com"
|
|
}
|
|
variable "support_url" {
|
|
type = string
|
|
description = "The URL of the support page"
|
|
default = "https://example.com/support"
|
|
}
|
|
variable "custom_html" {
|
|
type = string
|
|
description = "Custom HTML to include in the Vigil page"
|
|
default = ""
|
|
}
|