From 2886d808b533bb535aa584c4bcb9c5796ae49b17 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 21 Mar 2025 10:25:24 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8:=20add=20started=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxmox_lxc_container/main.tf | 1 + proxmox_lxc_container/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/proxmox_lxc_container/main.tf b/proxmox_lxc_container/main.tf index 5a8a991..3ff0e89 100644 --- a/proxmox_lxc_container/main.tf +++ b/proxmox_lxc_container/main.tf @@ -21,6 +21,7 @@ resource "proxmox_virtual_environment_container" "container" { unprivileged = var.unprivileged start_on_boot = var.start_on_boot + started = var.started features { nesting = var.features.nesting diff --git a/proxmox_lxc_container/variables.tf b/proxmox_lxc_container/variables.tf index 750f713..b9b530b 100644 --- a/proxmox_lxc_container/variables.tf +++ b/proxmox_lxc_container/variables.tf @@ -10,6 +10,12 @@ variable "start_on_boot" { default = false } +variable "started" { + description = "Shall the VM be started?" + type = bool + default = true +} + variable "memory_dedicated" { description = "RAM quantity" type = number