Skip to content

DRAFT: Add Packer build and upload workflow for Proxmox templates#80

Merged
runleveldev merged 10 commits intomainfrom
cmyers_issue63
Nov 14, 2025
Merged

DRAFT: Add Packer build and upload workflow for Proxmox templates#80
runleveldev merged 10 commits intomainfrom
cmyers_issue63

Conversation

@cmyers-mieweb
Copy link
Copy Markdown
Collaborator

Introduces a draft GitHub Actions workflow to support #63 to build and upload Debian 12 and Rocky 9 LXC templates for Proxmox. Adds supporting Packer HCL files, Ansible provisioning playbook, Python API utilities for uploading templates, and variable files for template customization.

Introduces a draft GitHub Actions workflow to build and upload Debian 12 and Rocky 9 LXC templates for Proxmox. Adds supporting Packer HCL files, Ansible provisioning playbook, Python API utilities for uploading templates, and variable files for template customization.
Added a comprehensive README.md explaining the Proxmox LXC template automation workflow. Updated the Rocky9 Packer variable file to use 'rocky9-lxc' as the template name instead of 'rocky9-fungible'.
Copy link
Copy Markdown
Collaborator

@runleveldev runleveldev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also these files are all in the container-creation/intern-phxdc-pve1 directory if you didn't notice. Let's get them their own packer or templates or images subdir and merge the .github directories.

Replaces Python scripts proxmox_upload.py and proxmox_utils.py with Node.js equivalents proxmox_upload.js and proxmox_utils.js for uploading LXC templates to Proxmox. Adds package.json for dependencies and updates CI workflow to trigger on changes in the packer directory. Minor improvements to Ansible provisioning and Packer variable files.
Carter Myers and others added 3 commits October 31, 2025 12:10
Changed the https.Agent configuration to reject unauthorized SSL certificates, ensuring that API requests to Proxmox require valid certificates. This improves security by preventing connections to servers with self-signed or invalid certificates.
Renamed and relocated all packer-related files and directories from container-creation/intern-phxdc-pve1/packer/ to their respective top-level locations for improved project structure and accessibility.
Carter Myers added 2 commits November 6, 2025 11:03
Expanded GitHub workflow trigger to all 'packer/**' paths. Refactored template_version variable in debian12 and rocky9 Packer configs for consistency. Modified Ansible provisioning to download and execute pown.sh from a remote source instead of copying a local file. Updated Rocky9 build to use template_version in output filename.
Added Ansible tasks to update all packages for RedHat-based and Debian-based systems in site.yml. Also fixed a typo in the container creation script's update message.
Copy link
Copy Markdown
Collaborator

@runleveldev runleveldev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Moves TEMPLATE_VERSION assignment from job-level env to a dedicated step using the current date. Cleans up comments and formatting for improved clarity in the build-templates workflow.
Copy link
Copy Markdown
Collaborator

@runleveldev runleveldev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@runleveldev runleveldev merged commit 00d176a into main Nov 14, 2025
3 checks passed
@runleveldev runleveldev deleted the cmyers_issue63 branch November 14, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create-container: Update Containers on an interval Create Ansible playbooks for LXC template config and disaster recovery

3 participants