terraform files in the right folder
This commit is contained in:
@@ -23,7 +23,14 @@ module "vm" {
|
|||||||
clone_node = var.clone_node
|
clone_node = var.clone_node
|
||||||
template_name = var.template_name
|
template_name = var.template_name
|
||||||
datastore = var.datastore
|
datastore = var.datastore
|
||||||
|
vlan_id = var.vlan_id
|
||||||
bridge = var.bridge
|
bridge = var.bridge
|
||||||
dns_servers = var.dns_servers
|
dns_servers = var.dns_servers
|
||||||
search_domain = var.search_domain
|
search_domain = var.search_domain
|
||||||
|
|
||||||
|
# Bootstrap overrides
|
||||||
|
started = var.started
|
||||||
|
use_dhcp = var.use_dhcp
|
||||||
|
subnet_mask = var.subnet_mask
|
||||||
|
gateway = var.gateway
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 ─────────────────────────────────────────────────────────────────
|
# ─── Network ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
variable "vlan_id" {
|
variable "vlan_id" {
|
||||||
|
|||||||
Reference in New Issue
Block a user