chriswayg / packer-proxmox-templates

:package: Packer templates for building Proxmox KVM images from ISO
170 stars 49 forks source link

feat: allow the proxmox node name to be set in build.conf #3

Closed drew9781 closed 4 years ago

drew9781 commented 4 years ago

My proxmox nodes are named pve#, and I think I noticed another fork had the same issue. I also added the vm_memory to build.sh, it doesn't seem to be used currently. Please correct me if I'm wrong :)

chriswayg commented 4 years ago

Thanks for your contribution! This works as long as the environment variable is assigned to a user variable first within the template.

"Environment variables can be used within your template using user variables. The env function is available only within the default value of a user variable, allowing you to default a user variable to an environment variable." (Packer docs)