Skip to content

Commit

Permalink
ichange roles for packer and fix typo on terraform variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayfly277 committed Mar 25, 2024
1 parent 46c2af3 commit cb580d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion _posts/2023-04-21-GOAD-on-proxmox-part2-packer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _posts/2023-04-21-GOAD-on-proxmox-part3-terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down

0 comments on commit cb580d8

Please sign in to comment.