Compare commits

..

No commits in common. "b485c5664b5ea2a3e0a46dd5f2e3a0bf72051d1e" and "dfe02d4fc317a50ebcdc777dc48e0991f3fcacae" have entirely different histories.

6 changed files with 12 additions and 53 deletions

View file

@ -3,7 +3,7 @@
provider "registry.terraform.io/brendanthompson/scratch" { provider "registry.terraform.io/brendanthompson/scratch" {
version = "0.4.0" version = "0.4.0"
constraints = "0.4.0, ~> 0.4" constraints = "0.4.0"
hashes = [ hashes = [
"h1:MTVRrvKcbCMw67V+QMOWkHaH5W6wusaBwoB2e6HcELM=", "h1:MTVRrvKcbCMw67V+QMOWkHaH5W6wusaBwoB2e6HcELM=",
"zh:02de448b66fa61d39588dadb267698f361a3b681beb48d6576068923de600df7", "zh:02de448b66fa61d39588dadb267698f361a3b681beb48d6576068923de600df7",
@ -106,25 +106,3 @@ provider "registry.terraform.io/matthewbaggett/ssh" {
"zh:d2f7677b7b27ae80395bc4e7606cb25fb1c84770a1b6a7042dcc6b92558c7d1b", "zh:d2f7677b7b27ae80395bc4e7606cb25fb1c84770a1b6a7042dcc6b92558c7d1b",
] ]
} }
provider "registry.terraform.io/telmate/proxmox" {
version = "3.0.1-rc3"
constraints = "3.0.1-rc3"
hashes = [
"h1:x7TfUaW+RpBtGov4DBuSJ5YPYBozapWuLyyZs0qjsKY=",
"zh:3699c41289c6fbe0f33b6c54360d43dcfba429de5fbf49506df9276d03aea915",
"zh:486c9ddda427d3fecdc6dfa189fce85c4a2aa1f490b024d636c0ac6a4dd3c692",
"zh:6091e141a0b8dcb1632c31e0f9555117bb023176c5d083f0e03441bbcf673a4e",
"zh:63d312c2c2994ed39dcb47b4d43c89990bd5fff20dbda63cddfb11c9202270f4",
"zh:6e69c70a85cfa720f543090ee3ce7d2eb2902df19657121b8b7ae64d44875d9f",
"zh:897b9f6075262fc9533f87d470217b14ae82614c6818a26b578a6d41c403d4eb",
"zh:91c24bd374fb8ee0c9e4e1c213d157139c047be78b0cafac3c4c9724db8083b0",
"zh:a224b58759314dc045fdbfc88b63b036b8ca6f75ad32606e94b553f150077c13",
"zh:a56e940c71b45e222c69a2a45388b58ed319836b922f84f62bded5b063662f4a",
"zh:b2e0a83aa535cd3493fbc7485d05d1a823c48bf487e313703f01a17edc631908",
"zh:ba0ad4fea8ba3b01c67fb164ed92fa927ac70d2d898378d192a01e818fcf6bee",
"zh:c49ebe13e7011d35d72e8e6a720df83f21c106444ef4383c5d6c0015aee55db6",
"zh:c53e2775040e103aedcce06b9acb79ca5fccdb4c578a4b6e32489c89e9c652dc",
"zh:c9002cc470ccfd8cd298d5655cf76af84b1d8a200207973d9ad80235818e89e3",
]
}

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

@ -1,15 +0,0 @@
variable "proxmox_endpoint" {
type = string
}
variable "proxmox_token_id" {
type = string
}
variable "proxmox_token_secret" {
type = string
}
provider "proxmox" {
pm_debug = true
pm_api_url = var.proxmox_endpoint
pm_api_token_id = var.proxmox_token_id
pm_api_token_secret = var.proxmox_token_secret
}

View file

@ -18,10 +18,6 @@ terraform {
source = "BrendanThompson/scratch" source = "BrendanThompson/scratch"
version = "0.4.0" version = "0.4.0"
} }
proxmox = {
source = "Telmate/proxmox"
version = "3.0.1-rc3"
}
} }
backend "s3" { backend "s3" {

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
} }
} }