MDR Packer Notes.txt 969 B

1234567891011121314151617181920212223242526272829
  1. Used to create the AWS AMI. run this on your local laptop. Part of the process is on the local laptop and part is in AWS.
  2. https://packer.io/
  3. create a symlink to the DVD iso so Git doesn't try to commit it.
  4. the Makefile is used to document the different images that you are trying to build.
  5. make
  6. Packer is required to partition the hard drives out before ec2 launch.
  7. username: centos
  8. key in vault called msoc-build
  9. to run through a new build use the make command.
  10. make aws-test
  11. AWS_PROFILE=mdr-test packer build -on-error=ask -only=master -var-file=rhel7_hardened_variables_test.json rhel7_hardened_multi_ami.json
  12. AWS_PROFILE=mdr-test packer build -on-error=ask -debug -only=master -var-file=rhel7_hardened_variables_test.json rhel7_hardened_multi_ami.json
  13. ----------------------
  14. Troubleshooting Help
  15. Add --debug to pause execution at each stage
  16. add --on-error=ask
  17. Having issues with the RHEL subscription manager in TEST? switch it to the prod one.