terraform files in the right folder

This commit is contained in:
2026-03-07 21:46:44 -06:00
parent ad03943339
commit 920ea80261
2 changed files with 34 additions and 0 deletions

View File

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

View File

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