Replace hypervisor_parent/witness_parent strings with hypervisor_config and witness_config map(string) variables, matching the pattern already used by the storage module. incus_networks in the root module is updated from map(number) to map(object) carrying type and the two config maps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
576 B
HCL
30 lines
576 B
HCL
variable "incus_hypervisors" {
|
|
type = map(string)
|
|
}
|
|
|
|
variable "incus_witnesses" {
|
|
type = map(string)
|
|
}
|
|
|
|
variable "incus_token" {
|
|
type = string
|
|
sensitive = true
|
|
description = "The common authentication token for all Incus remotes"
|
|
}
|
|
|
|
variable "incus_networks" {
|
|
type = map(object({
|
|
type = string
|
|
hypervisor_config = map(string)
|
|
witness_config = map(string)
|
|
}))
|
|
}
|
|
|
|
variable "incus_storage_pools" {
|
|
type = map(object({
|
|
driver = string
|
|
hypervisor_config = map(string)
|
|
witness_config = map(string)
|
|
}))
|
|
}
|