Packer Notes.md 1.0 KB

Packer Notes

HashiCorp Packer Used to create the AWS AMI. Packer is run on your local laptop.

Installation

https://www.packer.io/downloads Use brew on the mac

The Makefile is used to document the different images that you are able to build. Make doesn't provide any parts of the build process, just convenience.

Packer is required to partition the hard drives out before ec2 launch.

Usage

username: centos
key in Vault called msoc-build

to run through a new build use the make command.

See the README.md in the Packer/README.md

make aws-test
make multi7
AWS_PROFILE=mdr-test packer build -on-error=ask -only=master -var-file=rhel7_hardened_variables_test.json rhel7_hardened_multi_ami.json

Troubleshooting Help

Add --debug to pause execution at each stage
Add --on-error=ask

Having issues with the RHEL subscription manager in TEST? Switch it to the prod one.