Nerf telegram/vigil code.
This commit is contained in:
parent
5f01e175a8
commit
35536c16d0
3 changed files with 7 additions and 3 deletions
|
@ -21,6 +21,7 @@ locals {
|
||||||
custom_html = var.custom_html
|
custom_html = var.custom_html
|
||||||
services = local.services_toml
|
services = local.services_toml
|
||||||
startup_notification = var.notify_on_startup
|
startup_notification = var.notify_on_startup
|
||||||
|
telegram_enable = var.notify_telegram.token == "" ? "# " : "" // Disable telegram if token is not set
|
||||||
telegram_bot_token = var.notify_telegram.token
|
telegram_bot_token = var.notify_telegram.token
|
||||||
telegram_chat_id = var.notify_telegram.channel
|
telegram_chat_id = var.notify_telegram.channel
|
||||||
})
|
})
|
||||||
|
|
|
@ -59,9 +59,9 @@ reminder_interval = 600
|
||||||
reminder_backoff_function = "linear"
|
reminder_backoff_function = "linear"
|
||||||
reminder_backoff_limit = 3
|
reminder_backoff_limit = 3
|
||||||
|
|
||||||
[notify.telegram]
|
${telegram_enable}[notify.telegram]
|
||||||
bot_token = "${telegram_bot_token}"
|
${telegram_enable}bot_token = "${telegram_bot_token}"
|
||||||
chat_id = "${telegram_chat_id}"
|
${telegram_enable}chat_id = "${telegram_chat_id}"
|
||||||
|
|
||||||
[probe]
|
[probe]
|
||||||
|
|
||||||
|
|
3
vigil.tf
3
vigil.tf
|
@ -11,12 +11,15 @@ module "vigil_nginx_config" {
|
||||||
}
|
}
|
||||||
variable "telegram_token" {
|
variable "telegram_token" {
|
||||||
type = string
|
type = string
|
||||||
|
default = ""
|
||||||
}
|
}
|
||||||
variable "telegram_channel" {
|
variable "telegram_channel" {
|
||||||
type = string
|
type = string
|
||||||
|
default = ""
|
||||||
}
|
}
|
||||||
variable "telegram_topic" {
|
variable "telegram_topic" {
|
||||||
type = string
|
type = string
|
||||||
|
default = ""
|
||||||
}
|
}
|
||||||
module "vigil" {
|
module "vigil" {
|
||||||
source = "./modules/vigil"
|
source = "./modules/vigil"
|
||||||
|
|
Loading…
Reference in a new issue