0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 10:33:46 +00:00
terraform-provider-proxmox/examples/resources
Sven Greb 2eb36f4134
feat(cluster): Extend the available attributes for the proxmox_virtual_environment_cluster_options resource (#1241)
This commit implements the `next-id` and `notify` PVE API cluster
options.

The `next-id` attribute allows to control the range for the next free
VM ID. It is implemented as object and can be used in the
`proxmox_virtual_environment_cluster_options` resource and can be used
like this:

```terraform
resource "proxmox_virtual_environment_cluster_options" "options" {
  next_id = {
    lower = 200
    upper = 299
  }
}
```

Note that the minimum and maximum values are unfortunately not
documented in the PVE API explorer but can be found in the web UI where
the form fields have validations!

The `notify` PVE API attribute is also an object that has all the PVE
API fields:

```terraform
resource "proxmox_virtual_environment_cluster_options" "options" {
  notify = {
    ha_fencing_mode            = "never"
    ha_fencing_target          = "default-matcher"
    package_updates            = "always"
    package_updates_target     = "default-matcher"
    package_replication        = "always"
    package_replication_target = "default-matcher"
  }
}
```terraform

Note that the "fencing" attribute names have been adjusted to better
reflect their meaning since they are scoped to the Proxmox VE HA fencing
feature [1]. All attributes with the `_target` suffix are names for the
Proxmox VE notifications matchers [2].

[1]: https://pve.proxmox.com/wiki/Fencing
[2]: https://pve.proxmox.com/pve-docs/chapter-notifications.html#notification_matchers

---------

Signed-off-by: Sven Greb <development@svengreb.de>
2024-04-29 20:08:44 -04:00
..
proxmox_virtual_environment_cluster_options feat(cluster): Extend the available attributes for the proxmox_virtual_environment_cluster_options resource (#1241) 2024-04-29 20:08:44 -04:00
proxmox_virtual_environment_download_file feat(storage): add new resource proxmox_virtual_environment_download_file (#837) 2024-01-02 21:29:13 -05:00
proxmox_virtual_environment_hagroup feat(ha): add support for Proxmox High Availability objects (#498) 2023-08-20 21:42:12 +00:00
proxmox_virtual_environment_hardware_mapping_pci feat(cluster): Implement initial support for "hardware mappings" (#1213) 2024-04-18 16:00:51 -04:00
proxmox_virtual_environment_hardware_mapping_usb feat(cluster): Implement initial support for "hardware mappings" (#1213) 2024-04-18 16:00:51 -04:00
proxmox_virtual_environment_haresource feat(ha): add support for Proxmox High Availability objects (#498) 2023-08-20 21:42:12 +00:00
proxmox_virtual_environment_network_linux_bridge feat(core): migrate version datasource to TF plugin framework (#440) 2023-07-29 02:10:02 +00:00
proxmox_virtual_environment_network_linux_vlan fix(provider): User-settable VLAN ID and name (#518) 2023-08-28 20:19:10 -04:00