initial commit
This commit is contained in:
22
incus/provider.tf
Normal file
22
incus/provider.tf
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user