From 84365d03c67639cfc57e1bfd085553633b7360d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Mon, 17 Feb 2025 17:28:53 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20tags=20to=20Proxmox=20VMs;?= =?UTF-8?q?=20use=20linked=20clones=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-labs/terraform/virtual-machines/proxmox/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prepare-labs/terraform/virtual-machines/proxmox/main.tf b/prepare-labs/terraform/virtual-machines/proxmox/main.tf index 91dd9962..e767bc76 100644 --- a/prepare-labs/terraform/virtual-machines/proxmox/main.tf +++ b/prepare-labs/terraform/virtual-machines/proxmox/main.tf @@ -8,6 +8,7 @@ resource "proxmox_virtual_environment_vm" "_" { node_name = local.pve_nodes[each.value.node_index % length(local.pve_nodes)] for_each = local.nodes name = each.value.node_name + tags = ["container.training", var.tag] stop_on_destroy = true cpu { cores = split(" ", each.value.node_size)[0] @@ -26,6 +27,7 @@ resource "proxmox_virtual_environment_vm" "_" { clone { vm_id = var.proxmox_template_vm_id node_name = var.proxmox_template_node_name + full = false } agent { enabled = true