Newer
Older
openstack-caracal-dc-dc / opentofu / vr1-dc0-substrate / variables.tf
# Inner-root inputs. The two connection values (transit IP + ssh user) are MEASURED
# after vvr1-dc0 boots (hard rule 2 -- not invented); the rest mirror the outer root.

variable "vvr1_dc0_transit_ip" {
  description = "vvr1-dc0's static transit IP (D-124 Scheme A, NetBox-assigned) -- where this root's qemu+ssh inner provider connects. MEASURED after the outer apply boots vvr1-dc0."
  type        = string
}

variable "vvr1_dc0_ssh_user" {
  description = "SSH user on vvr1-dc0 for the qemu+ssh inner provider (the cloud-init user, e.g. jessea123). Key auth + known_hosts verified out of band (NO no_verify)."
  type        = string
  default     = "jessea123"
}

variable "inner_pool_path" {
  description = "Directory path INSIDE vvr1-dc0 for the inner libvirt storage pool that backs the node/edge disks (created by the bootstrap step)."
  type        = string
  default     = "/var/lib/libvirt/vr1-dc0-inner"
}

variable "opnsense_base_path" {
  description = "Path INSIDE vvr1-dc0 to the prepped OPNsense nano qcow2 (staged by the bootstrap step, opnsense-prep-image.sh run on vvr1-dc0)."
  type        = string
  default     = "/var/lib/libvirt/vr1-dc0-inner/opnsense-26.1-nano.qcow2"
}

variable "domain_suffix" {
  description = "DNS domain suffix for the planes (mirrors the outer root)."
  type        = string
}

variable "underlay_mtu" {
  description = "Jumbo MTU for the internal fabric planes/mesh (9000). The site-wan uplink stays 1500."
  type        = number
}

variable "vr1_dc0_planes" {
  description = "The six vr1-dc0 planes (CIDR map), copied from the outer root's var of the same name -- the D-101 layout, unchanged. dc-planes creates them as isolated-L2 networks inside vvr1-dc0."
  type        = any
}