Skip to content

jesmigel/packer

Repository files navigation

packer

Packer template repository. Current templates are used to build vmware iso vm templates used for VMWare ESXi hosts or preferrably through vCenter.

References

Name Comments
Dependencies Deployment Toolchain
Make Commands Deployment Shortcuts
Preflight Steps Pre deployment configuration

Ansible Roles

Name Status Comments
ansible-role-common CI Baseline role
ansible-role-hashicorp CI Used to Bootstrap worker VM with Hashicorp tools
ansible-role-packer CI Includes a payload processor that builds packer configurations.

Usage

  1. Initialise library dependencies.
    • Initialise a virtualenv directory and installs the contents of requirements.txt
    • Initialise ansible role directory and downloads the contents of requirements.yaml
make init
  1. Validate the vagrant configuration. Make sure to update relevant config. Refer to Preflight Steps for further details.
make validate
  1. Deploy the worker VM and execute packer instructions. The process is summarised as follows:
    • ansible-role-common: updates the binary repo and installs required OS binaries.
    • ansible-role-hashicorp: Adds Hashicorp official binary repo and installs relevant tools.
    • ansible role-packer: Processes input payload, generates and validates packer build files.
    • ansible role-packer: Builds VM.
make up

Builds

Name Origin ISO Comments
Ubuntu 20.4.2 Ubuntu Golden Image

ToDo

  • CentOS/Rocky Linux
  • Documentation
  • Diagrams