0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 02:52:58 +00:00
terraform-provider-proxmox/proxmox
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
..
access fix(user): expiration_date attribute handling (#1066) 2024-02-27 03:06:58 +00:00
api fix(vm,lxc,file): improve timeouts handling (#1222) 2024-04-19 12:38:16 -04:00
cluster feat(cluster): Extend the available attributes for the proxmox_virtual_environment_cluster_options resource (#1241) 2024-04-29 20:08:44 -04:00
firewall chore(code): fix proxmox package dependencies (#536) 2023-09-03 00:40:47 +00:00
nodes chore(vm2): experimental support for clone and inherited attributes (#1235) 2024-04-24 02:00:11 +00:00
pools chore(code): fix proxmox package dependencies (#536) 2023-09-03 00:40:47 +00:00
ssh fix(provider): EOF error when closing SSH session (#1113) 2024-03-11 20:05:11 -04:00
storage chore(code): fix proxmox package dependencies (#536) 2023-09-03 00:40:47 +00:00
types chore: remove unused code (#1236) 2024-04-24 20:52:41 -04:00
version feat(core): migrate version datasource to TF plugin framework (#440) 2023-07-29 02:10:02 +00:00
client.go feat(provider): configure temp directory (#607) 2023-10-07 21:00:34 -04:00