initial commit
This commit is contained in:
28
incus/network.tf
Normal file
28
incus/network.tf
Normal file
@@ -0,0 +1,28 @@
|
||||
resource "incus_network" "main_bridge" {
|
||||
for_each = var.incus_hypervisors
|
||||
name = "main"
|
||||
target = each.key
|
||||
type = "physical"
|
||||
config = {
|
||||
"parent" = "br0"
|
||||
}
|
||||
}
|
||||
|
||||
resource "incus_network" "main_dummy" {
|
||||
for_each = var.incus_witnesses
|
||||
name = "main"
|
||||
target = each.key
|
||||
type = "physical"
|
||||
config = {
|
||||
"parent" = "dummy0"
|
||||
}
|
||||
}
|
||||
|
||||
resource "incus_network" "main" {
|
||||
depends_on = [
|
||||
incus_network.main_bridge,
|
||||
incus_network.main_dummy
|
||||
]
|
||||
name = "main"
|
||||
type = "physical"
|
||||
}
|
||||
Reference in New Issue
Block a user