diff --git a/_posts/2023-04-21-GOAD-on-proxmox-part2-packer.md b/_posts/2023-04-21-GOAD-on-proxmox-part2-packer.md index 5bd4c96..c2fbcf8 100644 --- a/_posts/2023-04-21-GOAD-on-proxmox-part2-packer.md +++ b/_posts/2023-04-21-GOAD-on-proxmox-part2-packer.md @@ -48,7 +48,7 @@ pveum passwd infra_as_code@pve - Create a dedicated role for packer : ```bash -pveum roleadd Packer -privs "VM.Config.Disk VM.Config.CPU VM.Config.Memory Datastore.AllocateTemplate Datastore.Audit Datastore.AllocateSpace Sys.Modify VM.Config.Options VM.Allocate VM.Audit VM.Console VM.Config.CDROM VM.Config.Cloudinit VM.Config.Network VM.PowerMgmt VM.Config.HWType VM.Monitor" +pveum roleadd Packer -privs "VM.Config.Disk VM.Config.CPU VM.Config.Memory Datastore.AllocateTemplate Datastore.Audit Datastore.AllocateSpace Sys.Modify VM.Config.Options VM.Allocate VM.Audit VM.Console VM.Config.CDROM VM.Config.Cloudinit VM.Config.Network VM.PowerMgmt VM.Config.HWType VM.Monitor SDN.Use" ``` - Associate this role to our user @@ -57,6 +57,12 @@ pveum roleadd Packer -privs "VM.Config.Disk VM.Config.CPU VM.Config.Memory Datas pveum acl modify / -user 'infra_as_code@pve' -role Packer ``` +> If you got a 403 during packer install is because the rules may have change in another version of proxmox. Consider giving the user the Administrator role to solve the issue. + +```bash +pveum acl modify / -user 'infra_as_code@pve' -role Administrator +``` + ## Prepare config.auto.pkrvars.hcl - Now go to /root/GOAD/packer/proxmox/ and modify the config.auto.pkrvars.hcl template file diff --git a/_posts/2023-04-21-GOAD-on-proxmox-part3-terraform.md b/_posts/2023-04-21-GOAD-on-proxmox-part3-terraform.md index 48675df..338cd13 100644 --- a/_posts/2023-04-21-GOAD-on-proxmox-part3-terraform.md +++ b/_posts/2023-04-21-GOAD-on-proxmox-part3-terraform.md @@ -23,7 +23,7 @@ pveum acl modify / -user 'infra_as_code@pve' -role Administrator ``` cd /root/GOAD/ad/GOAD/providers/proxmox/terraform -cp variables.template variables.tf +cp variables.tf.template variables.tf ``` - And we setup the variables.tf file :