Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devops-360-online/packer-proxmox-template-builder
A Packer-based solution for automating the creation of Proxmox VM templates. Simplifies and accelerates VM provisioning, ensuring consistent and reproducible environments for DevOps practices.
https://github.com/devops-360-online/packer-proxmox-template-builder
automation cloud-computing devops infrastructure-as-code packer proxmox virtualization vm-templates
Last synced: 2 days ago
JSON representation
A Packer-based solution for automating the creation of Proxmox VM templates. Simplifies and accelerates VM provisioning, ensuring consistent and reproducible environments for DevOps practices.
- Host: GitHub
- URL: https://github.com/devops-360-online/packer-proxmox-template-builder
- Owner: devops-360-online
- Created: 2024-03-03T06:49:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T11:02:48.000Z (5 months ago)
- Last Synced: 2024-11-10T00:17:38.078Z (about 2 months ago)
- Topics: automation, cloud-computing, devops, infrastructure-as-code, packer, proxmox, virtualization, vm-templates
- Language: HCL
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# packer-proxmox-template-builder
A Packer-based solution for automating the creation of Proxmox VM templates. Simplifies and accelerates VM provisioning, ensuring consistent and reproducible environments for DevOps practices.```bash
export PACKER_LOG_PATH="/var/log/packer.log"
export PACKER_LOG=1cd ubuntu-server-jammy-docker
packer init [TEMAPLATE_NAME]
packer fmt .
packer validate --var-file="../credentials.pkr.hcl" "./ubuntu-server-jammy-docker.pkr.hcl"
packer build --var-file="../credentials.pkr.hcl" "./ubuntu-server-jammy-docker.pkr.hcl"
packer build -debug --var-file="../credentials.pkr.hcl" "./ubuntu-server-jammy-docker.pkr.hcl"
```Note: about RUNNER_IP_ADDRESS variable: This variable is only required if you are using the Gitlab CI/CD pipeline. The reason for this is that the runner is running in Docker, and the Docker container does not have access to the Proxmox API. To get around this, we need to use the IP address of the host machine.
The default username for the VM is ubuntu.
If you run Packer locally you must edit Packer template files and user-data files to set password and hashed password. If you are using the Gitlab CI/CD pipeline, just set the plaintext PASSWORD variable.
Note: You don't need hashed password on CI/CD pipeline, it will be hashed automatically. just set PASSWORD variable.
Note: You can use openssl command to generate hashed password. For example:openssl passwd -6 -salt xyz your_password