From 23dbcf69158f5e423d605c1202cc5c128b0eb0d5 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 15 Jul 2024 15:37:28 +0200 Subject: [PATCH] [readme] feat: added packer role --- readme.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index cbdad68..a319da1 100644 --- a/readme.md +++ b/readme.md @@ -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 +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