Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.19 KB

Packer

Build Windows and Linux server templates on vSphere with Packer

Currently supported builds:

Windows

Linux

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/"      # your Vault server
export VAULT_NAMESPACE="example/LAB"                    # (if using namespaces in Vault Enterprise)
export VAULT_TOKEN="abcdefg"                            # insert a Vault token ID

Alternatively, put those same export commands into a script called vault-env.sh.

Then just run ./build.sh [BUILD], where [BUILD] is one of the descriptors listed above. For example, to build Ubuntu 22.04:

./build.sh ubuntu2204