add new parameters and hosts

This commit is contained in:
2026-09-07 19:53:00 +00:00
parent 5d9c2d4d8a
commit 9402af23bb
3 changed files with 159 additions and 134 deletions
+30 -6
View File
@@ -16,7 +16,7 @@ variable "containers" {
started = optional(bool, true)
start_on_boot = optional(bool, true)
unprivileged = optional(bool, true)
ip = optional(string)
ip = optional(string, null)
gw = optional(string)
nameserver = optional(string)
tags = optional(list(string), [])
@@ -61,15 +61,15 @@ variable "containers" {
})
}))
default = {
"router-test" = {
vmid = 100
"router" = {
vmid = 101
memory = 1024
swap = 128
cores = 1
size = 1
size = 2
tags = ["main"]
started = false
start_on_boot = false
started = true
start_on_boot = true
ip = ""
networks = [
{
@@ -77,12 +77,14 @@ variable "containers" {
bridge = "vmbr0"
firewall = false
vlan_id = 0
hwaddr = "bc:24:11:2f:fa:f6"
},
{
name = "eth1"
bridge = "vmbr1"
firewall = false
vlan_id = 0
hwaddr = "bc:24:11:dd:b3:08"
}
]
operating_system = {
@@ -90,6 +92,28 @@ variable "containers" {
template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst"
}
}
"steamcmd" = {
vmid = 1203
memory = 6144
swap = 128
cores = 8
size = 2
tags = ["games"]
started = true
start_on_boot = true
networks = [
{
vlan_id = 12
}
]
operating_system = {
type = "debian",
template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst"
}
mount_point = [
{ volume= "/rpool/data/steamcmd/", path = "/mnt/steamcmd/" }
]
}
#"GITEA-TEST" = {
# vmid = 1012
# memory = 2048