variable "vm_host_name" {
description = "MAAS VM host (pod) name, e.g. \"dc1-vcloud\"."
type = string
}
variable "power_address" {
description = <<-EOT
The virsh/libvirt connection URI MAAS uses to reach the vcloud host, e.g.
"qemu+ssh://user@vcloud-host/system" (the exact format confirmed against
the provider's own docs/resources/vm_host.md example). MUST be measured
this session -- no default. This is the SAME libvirt endpoint OpenTofu's
own `provider "libvirt"` block connects to (D-103: OpenTofu and MAAS both
reach the vcloud host's libvirt), so it should match `var.libvirt_uri` in
the root module in practice, but is kept as its own input here rather
than silently assumed identical.
EOT
type = string
}
variable "zone" {
description = "MAAS zone name for this VM host. Optional in the provider's own schema -- confirmed (2026-07-09 audit pass) as computed by MAAS when left unset, i.e. leaving this null is a safe, supported no-op, not an unhandled edge case. null here rather than this module guessing a zone name."
type = string
default = null
}
variable "pool" {
description = "MAAS resource pool name for this VM host. Optional in the provider's own schema -- same confirmed computed-if-unset behavior as `zone` above."
type = string
default = null
}