0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-23 03:48:35 +00:00

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 <frank@villaro-dixon.eu>

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2022-12-29 20:30:32 +01:00 committed by GitHub
parent 13080b44dc
commit 60a68184cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ output "ubuntu_vm_public_key" {
* `rate_limit` - (Optional) The rate limit in megabytes per second. * `rate_limit` - (Optional) The rate limit in megabytes per second.
* `vlan_id` - (Optional) The VLAN identifier. * `vlan_id` - (Optional) The VLAN identifier.
* `node_name` - (Required) The name of the node to assign the virtual machine to. * `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. * `operating_system` - (Optional) The Operating System configuration.
* `type` - (Optional) The type (defaults to `other`). * `type` - (Optional) The type (defaults to `other`).
* `l24` - Linux Kernel 2.4. * `l24` - Linux Kernel 2.4.

View File

@ -24,7 +24,7 @@ import (
const ( const (
dvResourceVirtualEnvironmentVMRebootAfterCreation = false dvResourceVirtualEnvironmentVMRebootAfterCreation = false
dvResourceVirtualEnvironmentVMOnBoot = false dvResourceVirtualEnvironmentVMOnBoot = true
dvResourceVirtualEnvironmentVMACPI = true dvResourceVirtualEnvironmentVMACPI = true
dvResourceVirtualEnvironmentVMAgentEnabled = false dvResourceVirtualEnvironmentVMAgentEnabled = false
dvResourceVirtualEnvironmentVMAgentTimeout = "15m" dvResourceVirtualEnvironmentVMAgentTimeout = "15m"