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