From 60a68184cf7c6239eb5cc540c746f11e2a78c240 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 29 Dec 2022 20:30:32 +0100 Subject: [PATCH] feat(vm): OnBoot: change default to `true` (#191) vm: OnBoot: change default to `true` The `on_boot` parameter is used to start a VM when the node reboots. As the VM infrastructure should not really care whether an hypervisor has rebooted, we change the default value from `false` to `true` in order to make it explicit not to start the VM on reboot. Signed-off-by: Frank Villaro-Dixon Signed-off-by: Frank Villaro-Dixon --- docs/resources/virtual_environment_vm.md | 2 +- proxmoxtf/resource_virtual_environment_vm.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/virtual_environment_vm.md b/docs/resources/virtual_environment_vm.md index ce3ece48..e61501c9 100644 --- a/docs/resources/virtual_environment_vm.md +++ b/docs/resources/virtual_environment_vm.md @@ -274,7 +274,7 @@ output "ubuntu_vm_public_key" { * `rate_limit` - (Optional) The rate limit in megabytes per second. * `vlan_id` - (Optional) The VLAN identifier. * `node_name` - (Required) The name of the node to assign the virtual machine to. -* `on_boot` - (Optional) Specifies whether a VM will be started during system boot. (defaults to `false`) +* `on_boot` - (Optional) Specifies whether a VM will be started during system boot. (defaults to `true`) * `operating_system` - (Optional) The Operating System configuration. * `type` - (Optional) The type (defaults to `other`). * `l24` - Linux Kernel 2.4. diff --git a/proxmoxtf/resource_virtual_environment_vm.go b/proxmoxtf/resource_virtual_environment_vm.go index 5316aa8f..3e508923 100644 --- a/proxmoxtf/resource_virtual_environment_vm.go +++ b/proxmoxtf/resource_virtual_environment_vm.go @@ -24,7 +24,7 @@ import ( const ( dvResourceVirtualEnvironmentVMRebootAfterCreation = false - dvResourceVirtualEnvironmentVMOnBoot = false + dvResourceVirtualEnvironmentVMOnBoot = true dvResourceVirtualEnvironmentVMACPI = true dvResourceVirtualEnvironmentVMAgentEnabled = false dvResourceVirtualEnvironmentVMAgentTimeout = "15m"