mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-22 11:28:33 +00:00
- 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>
22 lines
619 B
HCL
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
|
|
}
|