From 920ea8026126bb0bc4bf0552bef90cdeb1c243dc Mon Sep 17 00:00:00 2001 From: Ryan Blundon Date: Sat, 7 Mar 2026 21:46:44 -0600 Subject: [PATCH] terraform files in the right folder --- terraform/proxmox/hosts/main.tf | 7 +++++++ terraform/proxmox/hosts/variables.tf | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/terraform/proxmox/hosts/main.tf b/terraform/proxmox/hosts/main.tf index 6c6aade..4adddfa 100644 --- a/terraform/proxmox/hosts/main.tf +++ b/terraform/proxmox/hosts/main.tf @@ -23,7 +23,14 @@ module "vm" { clone_node = var.clone_node template_name = var.template_name datastore = var.datastore + vlan_id = var.vlan_id bridge = var.bridge dns_servers = var.dns_servers search_domain = var.search_domain + + # Bootstrap overrides + started = var.started + use_dhcp = var.use_dhcp + subnet_mask = var.subnet_mask + gateway = var.gateway } diff --git a/terraform/proxmox/hosts/variables.tf b/terraform/proxmox/hosts/variables.tf index b27dbfb..39a42a8 100644 --- a/terraform/proxmox/hosts/variables.tf +++ b/terraform/proxmox/hosts/variables.tf @@ -79,6 +79,33 @@ variable "template_name" { } } +# ─── Bootstrap Options ─────────────────────────────────────────────────────── +# These override pipeline defaults for manual provisioning (pre-NetBox/n8n). + +variable "started" { + type = bool + description = "Start VM after creation. Pipeline: false (n8n starts it). Bootstrap: true." + default = false +} + +variable "use_dhcp" { + type = bool + description = "Use DHCP (pipeline) or static IP (bootstrap)." + default = true +} + +variable "subnet_mask" { + type = number + description = "Subnet mask in CIDR notation. Only used when use_dhcp = false." + default = 24 +} + +variable "gateway" { + type = string + description = "Default gateway. Only used when use_dhcp = false." + default = "10.1.71.1" +} + # ─── Network ───────────────────────────────────────────────────────────────── variable "vlan_id" {