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

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