0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-25 21:05:40 +00:00
terraform-provider-proxmox/examples/resources/proxmox_virtual_environment_acl/resource.tf
Pavel Boldyrev da0164a147
feat(docs): update compatibility notes for PVE 9.x
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-08-17 20:56:30 -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
}