mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
1.6 KiB
1.6 KiB
layout | title | parent | subcategory | description |
---|---|---|---|---|
page | proxmox_virtual_environment_hagroup | Resources | Virtual Environment | Manages a High Availability group in a Proxmox VE cluster. |
Resource: proxmox_virtual_environment_hagroup
Manages a High Availability group in a Proxmox VE cluster.
Example Usage
resource "proxmox_virtual_environment_hagroup" "example" {
group = "example"
comment = "This is a comment."
# Member nodes, with or without priority.
nodes = {
node1 = null
node2 = 2
node3 = 1
}
restricted = true
no_failback = false
}
Schema
Required
group
(String) The identifier of the High Availability group to manage.nodes
(Map of Number) The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities ornull
for unset priorities.
Optional
comment
(String) The comment associated with this groupno_failback
(Boolean) A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults tofalse
.restricted
(Boolean) A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults tofalse
.
Read-Only
id
(String) The unique identifier of this resource.
Import
Import is supported using the following syntax:
#!/usr/bin/env sh
# HA groups can be imported using their name, e.g.:
terraform import proxmox_virtual_environment_hagroup.example example