23 lines
421 B
HCL
23 lines
421 B
HCL
terraform {
|
|
required_providers {
|
|
incus = {
|
|
source = "lxc/incus"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "incus" {
|
|
generate_client_certificates = true
|
|
accept_remote_certificate = true
|
|
default_remote = keys(var.incus_hypervisors)[0]
|
|
|
|
dynamic "remote" {
|
|
for_each = var.incus_hypervisors
|
|
content {
|
|
name = remote.key
|
|
address = remote.value
|
|
token = var.incus_token
|
|
}
|
|
}
|
|
}
|