Skip to content

Build Windows and Linux server templates on vSphere with Packer

Notifications You must be signed in to change notification settings

jbowdre/packer-vsphere-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Build Windows and Linux server templates on vSphere with Packer

Resources

Stars

Watchers

Forks