Skip to main content

Using Packer and Ansible for Hardening

Hands-On Lab

 

Photo of John Marx

John Marx

Training Architect

Length

01:00:00

Difficulty

Beginner

This lab facilitates learning by doing by utilizing Packer to create an ami-image file that is staged in Amazon aws. The Packer tool is used to run an Ansible role against the OS image to harden the image. The resulting ami-image would then be available to specify when creating or upgrading Kubernetes clusters using installers such as kops.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

In this lab you will generate an RSA key for use by packer, edit Amazon AWS Keys into a packer build script, and run a packer job. The solution video explains how to monitor the progress and results on the aws console. Additionally each script, json file, and ansible playbook is briefly reviewed.