Skip to content

codelooks-com/packer-vsphere

 
 

Repository files navigation

vSphere

Packer vSphere Golden Images

The codelooks-com/packer-vsphere pipeline builds multi-OS golden-image templates on the Talos cluster's ephemeral ARC runners (no pinned build VM). Templates are consumed downstream by codelooks-com/terraform-vsphere.

What it builds

Nine template lines build on a weekly schedule (and on demand), each converted to a vSphere template, patched at build time, and promoted into the Templates/ folder with a one-generation -prev rollback:

Family Lines
Linux Ubuntu 24.04 / 22.04 · Debian 12 / 13 · Rocky 9 · AlmaLinux 9
Windows Server 2025 & 2022 (Datacenter, Desktop Experience) · Windows 11 (Enterprise)

The vendored engine supports many more OSes; ci/matrix.json is the single source of truth for the lines we actually build.

How it works

ci/matrix.jsonbuild-templates.yml (GitHub Actions) → an ARC runner pod running the ghcr.io/codelooks-com/packer-runner image → build.shpacker vsphere-iso → Ansible provisioning → convert + promote.

Build target: vSAN Cluster · vsanDatastore · VM Network · Templates folder · SSO domain core.codelooks.com.

Documentation

Full docs are published at https://codelooks-com.github.io/packer-vsphere/ — built from docs/ with Zensical and deployed by .github/workflows/docs.yml on every push to main.

Start with Architecture & Pipeline and Windows Templates. To preview locally:

cd docs
pip install -r requirements.txt
zensical serve   # http://localhost:8000

Upstream & License

Based on vmware/packer-examples-for-vsphere (tracked via upstream/developmain). Provided under the Simplified BSD License.

© Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the conditions of the BSD-2-Clause license are met. THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.

About

Multi-OS golden-image templates for vSphere — Packer + Ansible on ephemeral ARC runners. Consumed by codelooks-com/terraform-vsphere.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HCL 89.4%
  • Shell 9.0%
  • Other 1.6%