Why such a silly name? First of all, why not? Second of all, it's hard to come up with something unique for a demo environment. Third, this is using Ansible to set up Ansible, so it's kind of like the "cosmic turtle" that sits on the back of another cosmic turtle. Learning history makes us all better people :)
Special thanks to Jerry Corum for letting me use this as a base for a very specific set of demo requirements!
This is an attempt to make an ansible demo environment using AWS and OpenShift, and unlike previous projects, more smoothly with AAP 2.
This will most likely only be useful do you if you are a Red Hat employee or partner with access to the Red Hat Product Demo System's AWS Open Environments.
- Manifest file for registering Controller, needs to be downloaded and placed in this repo's root folder as
manifest.zip
See obtaining a subscription manifest for Tower here - Red Hat Open Environments AWS Credentials setup to work with Boto3 in a
[default]
profile - Red Hat API Offline Token (see
extra_vars_template.yml
for details) - Red Hat Automation Hub Offline Token (see
extra_vars_template.yml
for details) - An SSH key generated with the default name (id_rsa and id_rsa.pub)
- Clustered vs single instance. Can change in extra_vars.yml. Default is clustered at the moment.
- Clustered
- ~ xx minutes to start from scratch (after variables and config options are set)
- ~ xx minutes to start with
start.sh
after safe shutdown withstop.sh
- Single
- ~ xx minutes to start from scratch (after variables and config options are set)
- ~ xx minutes to start with
start.sh
after safe shutdown withstop.sh
- Do you want my demo projects installed or a blank environment?
- Default will be with all my demos
- Set
with demos: false
inextra_vars.yml
for a blank environment.
- Clone this repository
- Place the manifest.zip file in the newly cloned directory
- Copy extra_vars_template.yml to extra_vars.yml and make sure the following are populated with your own information:
- api_offline_token
- hub_offline_token
- redhat_username
- redhat_password
- redhat_email
- admin_password
- top_level_domain
I recommend running the entire setup process with the Let's Encrypt Staging directory first to ensure setup will complete. After that you can uncomment the production directory url in the extra_vars.yml file permanently on your machine.
- Run
./setup.sh
- This will first run setup_local.yml to template your ansible.cfg file properly for Automation Hub collections
- It will then run setup_aws.yml which will prepare the infrastructure AAP will run on
- Finally it runs setup_aap.yml to install AAP and configure your environment.