DISCLAIMER: THIS WAS USED TO TEST FUCTIONALITY AND IS NOT READY FOR PRODUCTION USE
THE PLAYBOOKES USED IN THIS ARE BEING RUN LOCALLY
- Subscribe machine
- Add ansible repo to yum
- Install ansible
- Run 'ansible-playbook install-cockpit-and-IB.yml'
- Run 'ansible-playbook image-creation.yml' There you have a custom built AMI!
THE PLAYBOOKES USED IN THIS ARE BEING RUN LOCALLY
- Run 'ansible-playbook install-aws-cli.yml'
- Configure host to connect to AWS using 'aws configure'
- Store aws aws_access_key and aws_secret_key in a file called anisible vault file called 'secrets.yml' to do so run the command 'ansible-vault create secrets.yml' make sure to save a secure password after editing the yml file for an example look at 'example-secret.yml'
- Run 'ansible-playbook push-to-aws.yml --extra-vars @secrets.yml --ask-vault-pass'
- Check S3 Bucket to see new image in bucket
- Check EBS snapshots for new image snaphot
- Right click on the new snapshot to create image