[incus] add project and profile management

This commit is contained in:
2026-03-15 15:32:45 +01:00
parent 6a1aa5ad9f
commit 91abbbae02
2 changed files with 21 additions and 0 deletions

12
incus/profile.tf Normal file
View File

@@ -0,0 +1,12 @@
resource "incus_profile" "default" {
name = "default"
description = "Default Incus profile"
device {
name = "eth0"
properties = {
"name" = "eth0"
"network" = module.network["main"].name
}
type = "nic"
}
}

9
incus/project.tf Normal file
View File

@@ -0,0 +1,9 @@
resource "incus_project" "default" {
name = "default"
description = "Default Incus project"
config = {
"features.networks" = "true"
"features.networks.zones" = "true"
}
}