[readme] feat: added packer role

This commit is contained in:
Simon Cornet 2024-07-15 15:37:28 +02:00
parent 4f078d4c59
commit 23dbcf6915

View File

@ -2,7 +2,7 @@
Packer is a tool that can create Virtual Machine templates from code.
This repository hosts the code for a customized templates used in Siempie's home environment using the Proxmox Hypervisor.
# Template
# Inside the Template
Inside the template packer does:
- Install updates
- Install tools; curl, qemu-guest agent, sudo and wget.
@ -20,8 +20,15 @@ More info: https://developer.hashicorp.com/packer/docs/intro
|----|---------|-------|--------|
| Ubuntu 24 | ubuntu.template.siempie.internal | 999 | scripts/ubuntu24.sh |
# Create packer user and role on Proxmox
```
pveum role add packer -privs "Datastore.AllocateSpace Datastore.Audit Pool.Allocate Sys.Audit Sys.Console Sys.Modify VM.Allocate VM.Audit VM.Clone VM.Config.CDROM VM.Config.Cloudinit VM.Config.CPU VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Migrate VM.Monitor VM.PowerMgmt SDN.Use"
pveum user add packer@pve --password <super-secure>
pveum aclmod / -user packer@pve -role packer
```
# Install packer
Install packer on your system:
Install packer on your system (or dedicated pxc container):
https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli
# Variables