Learn how to use Packer, a popular DevOps tool for simplifying the creation of machine images, and implement a continuous development approach to changes in your software.
Overview
Syllabus
Introduction
- Stop manually creating images and start using Packer
- What you should know
- What is Packer?
- Installing Packer
- The Packer workflow and components
- The Packer CLI
- Challenge: Inspect a Packer template
- Solution: Inspect a Packer template
- Select an AWS AMI base
- Automate AWS AMI base build
- Using build variables
- Provision Hello World
- Provision a basic site
- Challenge: Provision a MariaDB server
- Solution: Provision a MariaDB server
- Simplify provisioning with a config tool
- Use ansible to install the webserver
- Debugging
- Challenge: Use Ansible to provision the MariaDB server
- Solution: Use Ansible to provision the MariaDB server
- Use Ansible modules to harden our image
- Baking a Jenkins image
- Challenge: Use Ansible to harden the MariaDB server
- Solution: Use Ansible to harden the MariaDB server
- Validate Packer templates
- Create a manifest profile
- Testing
- CI pipeline
- Challenge: Make a pipeline for the MariaDB server
- Solution: Make a pipeline for the MariaDB server
- Next steps
Taught by
Chris O'Dell