0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 19:38:35 +00:00
terraform-provider-proxmox/examples/resources/proxmox_virtual_environment_acl/resource.tf
Pavel Boldyrev 08ea66a4e0
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 <627562+bpg@users.noreply.github.com>
2025-08-17 21:15:47 -04:00

22 lines
619 B
HCL

resource "proxmox_virtual_environment_user" "operations_automation" {
comment = "Managed by Terraform"
password = "a-strong-password"
user_id = "operations-automation@pve"
}
resource "proxmox_virtual_environment_role" "operations_monitoring" {
role_id = "operations-monitoring"
privileges = [
"VM.GuestAgent.Audit",
]
}
resource "proxmox_virtual_environment_acl" "operations_automation_monitoring" {
user_id = proxmox_virtual_environment_user.operations_automation.user_id
role_id = proxmox_virtual_environment_role.operations_monitoring.role_id
path = "/vms/1234"
propagate = true
}