From 8b1c6b85935e4cf7e2b96a0e57b9b4975c547ca0 Mon Sep 17 00:00:00 2001 From: pyrschtjag Date: Sun, 18 Oct 2026 12:33:39 +0400 Subject: [PATCH] added new hosts --- backend_override.tf | 5 +++++ variables.tf | 46 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 backend_override.tf diff --git a/backend_override.tf b/backend_override.tf new file mode 100644 index 0000000..3c533e6 --- /dev/null +++ b/backend_override.tf @@ -0,0 +1,5 @@ +terraform { + backend "local" { + path = "terraform.tfstate" + } +} diff --git a/variables.tf b/variables.tf index d5ebd3f..39f685a 100644 --- a/variables.tf +++ b/variables.tf @@ -126,6 +126,8 @@ variable "containers" { tags = ["core","database"] started = true start_on_boot = true + memory = 1024 + swap = 512 operating_system = { type = "debian", template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" @@ -173,6 +175,31 @@ variable "containers" { template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" } } + "work" = { + vmid = 1040 + tags = ["infra","lg"] + started = true + start_on_boot = true + memory = 6144 + swap = 3072 + cores = 4 + size = 6 + operating_system = { + type = "debian", + template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" + } + mount_point = [ + { volume= "/rpool/data/work/", path = "/mnt/work/" } + ] + device_passthrough = [ + { + path = "/dev/net/tun" + gid = 0 + uid = 0 + mode = "0660" + } + ] + } "vaultwarden" = { vmid = 1110 tags = ["services","security"] @@ -267,6 +294,7 @@ variable "containers" { start_on_boot = true memory = 2048 swap = 1024 + size = 4 operating_system = { type = "debian", template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" @@ -321,8 +349,8 @@ variable "containers" { tags = ["media","streaming"] started = true start_on_boot = true - memory = 1024 - swap = 512 + memory = 4096 + swap = 2048 operating_system = { type = "debian", template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" @@ -344,6 +372,20 @@ variable "containers" { template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" } } + "minidlna" = { + vmid = 1226 + tags = ["media", "dlna"] + started = true + start_on_boot = true + mount_point = [ + { volume = "/mnt/media1", path = "/mnt/media1" }, + { volume = "/mnt/media2", path = "/mnt/media2" } + ] + operating_system = { + type = "debian" + template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst" + } + } "asf" = { vmid = 1230 tags = ["gaming","automation"]