diff --git a/infra/main.tofu b/infra/main.tofu index bfaa159..e6d33b7 100644 --- a/infra/main.tofu +++ b/infra/main.tofu @@ -48,11 +48,11 @@ module "master" { source = "./modules/incus_vm" count = local.master_count - name = "master-${count.index}" - project = incus_project.this.name - image = incus_image.this.fingerprint - cpu = 2 - memory = "2GiB" + name = "master-${count.index}" + project = incus_project.this.name + image = incus_image.this.fingerprint + cpu = 2 + memory = "2GiB" network = incus_network.this.name ipv4_address = cidrhost(local.network_cidr, 2 + (2 * count.index)) @@ -62,11 +62,11 @@ module "worker" { source = "./modules/incus_vm" count = local.worker_count - name = "worker-${count.index}" - project = incus_project.this.name - image = incus_image.this.fingerprint - cpu = 2 - memory = "2GiB" + name = "worker-${count.index}" + project = incus_project.this.name + image = incus_image.this.fingerprint + cpu = 2 + memory = "2GiB" network = incus_network.this.name ipv4_address = cidrhost(local.network_cidr, 3 + (2 * count.index))