mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 10:33:46 +00:00
Add description of HA settings management
Signed-off-by: Dan McCormack <cowgod@users.noreply.github.com>
This commit is contained in:
parent
52a2af524c
commit
418241cfcd
@ -668,6 +668,26 @@ All changes made to `amd_sev` will trigger reboots. Removing or adding the `amd_
|
|||||||
|
|
||||||
`allow_smt` is by default set to `true` even if `snp` is not the selected type. Proxmox will ignore this value when `snp` is not in use. Likewise `no_key_sharing` is `false` by default but ignored by Proxmox when `snp` is in use.
|
`allow_smt` is by default set to `true` even if `snp` is not the selected type. Proxmox will ignore this value when `snp` is not in use. Likewise `no_key_sharing` is `false` by default but ignored by Proxmox when `snp` is in use.
|
||||||
|
|
||||||
|
## High Availability
|
||||||
|
|
||||||
|
When managing a virtual machine in a multi-node cluster, the VM's HA settings can
|
||||||
|
be managed using the `proxmox_virtual_environment_haresource` resource.
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
|
||||||
|
name = "terraform-provider-proxmox-ubuntu-vm"
|
||||||
|
vm_id = 4321
|
||||||
|
# ...
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "proxmox_virtual_environment_haresource" "ubuntu_vm" {
|
||||||
|
resource_id = "vm:${proxmox_virtual_environment_vm.ubuntu_vm.vm_id}"
|
||||||
|
group = "node1"
|
||||||
|
state = "started"
|
||||||
|
comment = "Managed by Terraform"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Important Notes
|
## Important Notes
|
||||||
|
|
||||||
### `local-lvm` Datastore
|
### `local-lvm` Datastore
|
||||||
|
Loading…
Reference in New Issue
Block a user