Note: this project has not been updated in a while (and now marked read-only) but the techniques still illustrate the workflow.
This Packer build example is intended to illustrate building a base image from the official Ubuntu "Xenial" 16.04 AMI from Canonical, and provisioning it using Packer's ansible Provisioner. The build AMI is then launched and tested with TestInfra.
This is the sibling repository of the Ansible role ansible-example-base
This repository was created as part of a presentation given to the DevOps Toronto monthly meetup on Nov. 7, 2017. Slides from the talk are available here.