Adding vm_ids to each container

This commit is contained in:
tolerryan
2026-07-27 03:44:12 +00:00
parent 7a9cd5a1b2
commit 6a7b788a97
24 changed files with 83 additions and 3 deletions

View File

@@ -67,6 +67,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "wikmd" }
variable "vm_id" = "11"
variable "ip_address" { default = "192.168.0.11/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -66,6 +66,9 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "downloader" }
variable "vm_id" = "22"
variable "ip_address" { default = "192.168.0.22/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -67,6 +67,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "gitea" }
variable "vm_id" = "63"
variable "ip_address" { default = "192.168.0.63/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -32,6 +32,8 @@ resource "proxmox_virtual_environment_vm" "debian_vm" {
name = "grailvm"
node_name = var.node_name
vm_id = var.vm_id
initialization {
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "grailvm" }
variable "vm_id" = "58"
variable "ip_address" { default = "192.168.0.58/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -75,6 +75,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "grail" }
variable "vm_id" = "65"
variable "ip_address" { default = "192.168.0.65/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -67,6 +67,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "n8n" }
variable "vm_id" = "69"
variable "ip_address" { default = "192.168.0.69/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -74,6 +74,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "navidrome" }
variable "vm_id" = "59"
variable "ip_address" { default = "192.168.0.59/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -67,6 +67,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -33,6 +38,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "openbao" }
variable "vm_id" = "64"
variable "ip_address" { default = "192.168.0.64/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -61,6 +61,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -16,6 +16,11 @@ variable "nesting_enabled" {
default = true
}
variable "vm_id" {
type = number
default = 100
}
# ---------------------------------------------------------------
# Disk sizes (primary + optional)
# ---------------------------------------------------------------
@@ -29,12 +34,11 @@ variable "disk_size_gb" {
default = 450
}
# ---------------------------------------------------------------
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "owncloud" }
variable "vm_id" = "57"
variable "ip_address" { default = "192.168.0.57/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -76,6 +76,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -49,6 +49,7 @@ variable "second_disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "tor" }
variable "vm_id" = "66"
variable "ip_address" { default = "192.168.0.66/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -58,6 +58,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -33,6 +33,7 @@ variable "disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "uptimekuma" }
variable "vm_id" = "60"
variable "ip_address" { default = "192.168.0.60/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }

View File

@@ -76,6 +76,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
node_name = var.node_name
vm_id = var.vm_id
operating_system {
template_file_id = var.template_file_id
type = "debian"

View File

@@ -32,7 +32,7 @@ variable "disk_size_gb" {
variable "second_disk_enabled" {
type = bool
default = false
}
}`
variable "second_disk_datastore" {
type = string
@@ -48,6 +48,7 @@ variable "second_disk_size_gb" {
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "wikmd" }
variable "vm_id" = "56"
variable "ip_address" { default = "192.168.0.56/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }