Formatting

This commit is contained in:
Greyscale 2024-08-23 23:56:19 +02:00
parent dfe02d4fc3
commit b69c12d16b
3 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ variable "notify_telegram" {
type = object({ type = object({
token = string token = string
channel = string channel = string
topic = optional(string, null) topic = optional(string, null)
}) })
description = "Telegram configuration" description = "Telegram configuration"
default = null default = null

View file

@ -12,7 +12,7 @@ resource "docker_service" "orcaslicer" {
env = { env = {
PUID = 1000 PUID = 1000
PGID = 1000 PGID = 1000
TZ = "Europe/Amsterdam" TZ = "Europe/Amsterdam"
} }
mounts { mounts {
target = "/config" target = "/config"

View file

@ -10,15 +10,15 @@ module "vigil_nginx_config" {
allow_ssl = false allow_ssl = false
} }
variable "telegram_token" { variable "telegram_token" {
type = string type = string
default = "" default = ""
} }
variable "telegram_channel" { variable "telegram_channel" {
type = string type = string
default = "" default = ""
} }
variable "telegram_topic" { variable "telegram_topic" {
type = string type = string
default = "" default = ""
} }
module "vigil" { module "vigil" {
@ -72,21 +72,21 @@ module "vigil" {
] ]
"PDUs" = [ "PDUs" = [
{ {
id = "pdu-main" id = "pdu-main"
label = "PDU Main Space" label = "PDU Main Space"
endpoints = [ endpoints = [
"icmp://main.pdu.ti", "icmp://main.pdu.ti",
"tcp://main.pdu.ti:23", "tcp://main.pdu.ti:23",
] ]
},{ }, {
id = "pdu-aux" id = "pdu-aux"
label = "PDU Aux Space" label = "PDU Aux Space"
endpoints = [ endpoints = [
"icmp://aux.pdu.ti", "icmp://aux.pdu.ti",
"tcp://aux.pdu.ti:23", "tcp://aux.pdu.ti:23",
] ]
},{ }, {
id = "pdu-printers" id = "pdu-printers"
label = "PDU Printers" label = "PDU Printers"
endpoints = [ endpoints = [
"icmp://printer.pdu.ti", "icmp://printer.pdu.ti",
@ -243,6 +243,6 @@ module "vigil" {
notify_telegram = { notify_telegram = {
token = var.telegram_token token = var.telegram_token
channel = var.telegram_channel channel = var.telegram_channel
topic = var.telegram_topic topic = var.telegram_topic
} }
} }