From 134897ed6f4c2137ecb5a7d82a834336e43a1339 Mon Sep 17 00:00:00 2001 From: VC Date: Thu, 6 Mar 2025 17:29:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8:=20add=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxmox_lxc_container/main.tf | 2 ++ proxmox_lxc_container/variables.tf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/proxmox_lxc_container/main.tf b/proxmox_lxc_container/main.tf index 45ca11d..e6d6179 100644 --- a/proxmox_lxc_container/main.tf +++ b/proxmox_lxc_container/main.tf @@ -17,6 +17,8 @@ resource "proxmox_virtual_environment_container" "container" { node_name = "serenor" description = var.server_desc + tags = var.tags + unprivileged = var.unprivileged start_on_boot = var.start_on_boot diff --git a/proxmox_lxc_container/variables.tf b/proxmox_lxc_container/variables.tf index 8246745..8ccdf61 100644 --- a/proxmox_lxc_container/variables.tf +++ b/proxmox_lxc_container/variables.tf @@ -26,6 +26,12 @@ variable "server_desc" { type = string } +variable "tags" { + description = "Tags to be associated to the VM" + type = list(string) + default = [] +} + variable "features" { description = "Proxmox Container Features" type = object({