Skip to content

Commit 08ea66a

Browse files
authored
feat(docs): update compatibility notes for PVE 9.x (#2116)
- Update primary support from Proxmox VE 8.x to 9.x - Change privilege examples from VM.Monitor to VM.GuestAgent.Audit (VM.Monitor removed in PVE 9.x) - Add backward compatibility notes for 8.x users - Update production requirements and examples Signed-off-by: Pavel Boldyrev <[email protected]>
1 parent 71cbd8c commit 08ea66a

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ The project is not affiliated with [Proxmox Server Solutions GmbH](https://www.p
1919

2020
## Compatibility Promise
2121

22-
This provider is compatible with Proxmox VE 8.x (currently **8.4**).
22+
This provider is compatible with Proxmox VE 9.x (currently **9.0**). See [Known Issues](#known-issues) below for compatibility details.
2323

2424
> [!IMPORTANT]
25+
> Proxmox VE 8.x is supported, but some functionality might be limited or not work as expected. Testing against 8.x is not a priority, and issues specific to 8.x will not be addressed.
2526
> Proxmox VE 7.x is NOT supported. While some features might work with 7.x, we do not test against it, and issues specific to 7.x will not be addressed.
2627
2728
While the provider is on version 0.x, it is not guaranteed to be backward compatible with all previous minor versions.
@@ -31,7 +32,7 @@ However, we will try to maintain backward compatibility between provider version
3132

3233
### Production Requirements
3334

34-
- [Proxmox Virtual Environment](https://www.proxmox.com/en/proxmox-virtual-environment/) 8.x
35+
- [Proxmox Virtual Environment](https://www.proxmox.com/en/proxmox-virtual-environment/) 9.x
3536
- TLS 1.3 for the Proxmox API endpoint (legacy TLS 1.2 is optionally supported)
3637
- [Terraform](https://www.terraform.io/downloads.html) 1.5+ or [OpenTofu](https://opentofu.org) 1.6+
3738

@@ -77,7 +78,7 @@ The following assumptions are made about the test environment:
7778
Create `example/terraform.tfvars` with the following variables:
7879

7980
```sh
80-
virtual_environment_endpoint = "https://pve.example.doc:8006/"
81+
virtual_environment_endpoint = "https://pve.example.com:8006/"
8182
virtual_environment_ssh_username = "terraform"
8283
virtual_environment_api_token = "root@pam!terraform=00000000-0000-0000-0000-000000000000"
8384
```
@@ -93,6 +94,12 @@ Work has started to migrate the provider to the new [Terraform Plugin Framework]
9394

9495
## Known Issues
9596

97+
### Proxmox VE 9.0
98+
99+
Proxmox VE 9.0 has a new API for managing HA resources, which is not yet supported by the provider, see [#2097](https://github.com/bpg/terraform-provider-proxmox/issues/2097) for more details.
100+
101+
`apt_*` resources / datasources do not support the new deb822 style format.
102+
96103
### HA VMs / containers
97104

98105
If a VM or container resource is created with the provider but managed by an HA cluster, it might be migrated to a different node without the provider being aware of the change.
@@ -110,7 +117,7 @@ Add the following block to your VM config:
110117
}
111118
```
112119

113-
For more context, see #1639 and #1770.
120+
For more context, see issues #1639 and #1770.
114121

115122
### Disk Images from VMware Cannot Be Uploaded or Imported
116123

docs/index.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,26 @@ Use the navigation to the left to read about the available resources.
1212

1313
## Table of Contents
1414

15-
- [Environment Variables Summary](#environment-variables-summary)
16-
- [Example Usage](#example-usage)
17-
- [Authentication](#authentication)
15+
- [Proxmox Provider](#proxmox-provider)
16+
- [Table of Contents](#table-of-contents)
17+
- [Environment Variables Summary](#environment-variables-summary)
18+
- [Example Usage](#example-usage)
19+
- [Authentication](#authentication)
1820
- [Authentication Methods Comparison](#authentication-methods-comparison)
1921
- [Static Credentials Examples](#static-credentials-examples)
2022
- [Security Best Practices](#security-best-practices)
2123
- [Environment variables](#environment-variables)
2224
- [API Token Authentication](#api-token-authentication)
2325
- [Pre-Authentication, or Passing an Authentication Ticket into the provider](#pre-authentication-or-passing-an-authentication-ticket-into-the-provider)
24-
- [SSH Connection](#ssh-connection)
26+
- [SSH Connection](#ssh-connection)
2527
- [SSH Agent](#ssh-agent)
2628
- [SSH Private Key](#ssh-private-key)
2729
- [SSH User](#ssh-user)
2830
- [Node IP address used for SSH connection](#node-ip-address-used-for-ssh-connection)
2931
- [SSH Connection via SOCKS5 Proxy](#ssh-connection-via-socks5-proxy)
30-
- [VM and Container ID Assignment](#vm-and-container-id-assignment)
31-
- [Temporary Directory](#temporary-directory)
32-
- [Argument Reference](#argument-reference)
32+
- [VM and Container ID Assignment](#vm-and-container-id-assignment)
33+
- [Temporary Directory](#temporary-directory)
34+
- [Argument Reference](#argument-reference)
3335

3436
## Environment Variables Summary
3537

@@ -205,10 +207,10 @@ You can create an API Token for a user via the Proxmox UI, or via the command li
205207
- Create a role for the user (you can skip this step if you want to use any of the existing roles):
206208

207209
```sh
208-
sudo pveum role add Terraform -privs "Mapping.Audit Mapping.Modify Mapping.Use Permissions.Modify Pool.Allocate Pool.Audit Realm.AllocateUser Realm.Allocate SDN.Allocate SDN.Audit Sys.Audit Sys.Console Sys.Incoming Sys.Modify Sys.AccessNetwork Sys.PowerMgmt Sys.Syslog User.Modify Group.Allocate SDN.Use VM.Allocate VM.Audit VM.Backup VM.Clone VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Console VM.Migrate VM.Monitor VM.PowerMgmt VM.Snapshot.Rollback VM.Snapshot Datastore.Allocate Datastore.AllocateSpace Datastore.AllocateTemplate Datastore.Audit"
210+
sudo pveum role add Terraform -privs "Realm.AllocateUser, VM.PowerMgmt, VM.GuestAgent.Unrestricted, Sys.Console, Sys.Audit, Sys.AccessNetwork, VM.Config.Cloudinit, VM.Replicate, Pool.Allocate, SDN.Audit, Realm.Allocate, SDN.Use, Mapping.Modify, VM.Config.Memory, VM.GuestAgent.FileSystemMgmt, VM.Allocate, SDN.Allocate, VM.Console, VM.Clone, VM.Backup, Datastore.AllocateTemplate, VM.Snapshot, VM.Config.Network, Sys.Incoming, Sys.Modify, VM.Snapshot.Rollback, VM.Config.Disk, Datastore.Allocate, VM.Config.CPU, VM.Config.CDROM, Group.Allocate, Datastore.Audit, VM.Migrate, VM.GuestAgent.FileWrite, Mapping.Use, Datastore.AllocateSpace, Sys.Syslog, VM.Config.Options, Pool.Audit, User.Modify, VM.Config.HWType, VM.Audit, Sys.PowerMgmt, VM.GuestAgent.Audit, Mapping.Audit, VM.GuestAgent.FileRead, Permissions.Modify"
209211
```
210212

211-
~> The list of privileges above is only an example, please review it and adjust to your needs.
213+
~> The list of available privileges has been changed in PVE 9.0, and the above list is only an example (and most likely too excessive for most use cases), please review it and adjust to your needs.
212214
Refer to the [privileges documentation](https://pve.proxmox.com/pve-docs/pveum.1.html#_privileges) for more details.
213215

214216
- Assign the role to the previously created user:

docs/resources/virtual_environment_acl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
2929
role_id = "operations-monitoring"
3030
3131
privileges = [
32-
"VM.Monitor",
32+
"VM.GuestAgent.Audit",
3333
]
3434
}
3535

docs/resources/virtual_environment_role.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
1616
role_id = "operations-monitoring"
1717
1818
privileges = [
19-
"VM.Monitor",
19+
"VM.GuestAgent.Audit",
2020
]
2121
}
2222
```

docs/resources/virtual_environment_user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
2828
role_id = "operations-monitoring"
2929
3030
privileges = [
31-
"VM.Monitor",
31+
"VM.GuestAgent.Audit",
3232
]
3333
}
3434
```

example/resource_virtual_environment_role.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "proxmox_virtual_environment_role" "example" {
22
privileges = [
3-
"VM.Monitor",
3+
"VM.GuestAgent.Audit",
44
]
55
role_id = "terraform-provider-proxmox-example"
66
}

examples/resources/proxmox_virtual_environment_acl/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
88
role_id = "operations-monitoring"
99

1010
privileges = [
11-
"VM.Monitor",
11+
"VM.GuestAgent.Audit",
1212
]
1313
}
1414

0 commit comments

Comments
 (0)