Build Windows and Linux server templates on vSphere with Packer
- Content Library Rsync appliance (details here)
- CentOS 7
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Rocky Linux 9
- Ubuntu Server 20.04 LTS
- Ubuntu Server 22.04 LTS
- VMware Photon OS 4
To run a build locally (not via GitLab CI), you'll need to first export a few Vault-related environment variables:
export VAULT_ADDR="https://vault.lab.example.com"
export VAULT_NAMESPACE="example/LAB"
export VAULT_TOKEN="" # insert a Vault token ID
Then just copy/paste the corresponding packer build
line from .gitlab-ci.yml. For example, to run a Windows Server 2022 build:
packer build -on-error=abort -force \
-var-file="builds/common_configs/common.pkrvars.hcl" \
"builds/windows/server/2022/"