Skip to content

nicholas-chia/unicorn-rhel

Repository files navigation

Unicorn-RHEL demo instructions

With your Red Hat email address, join the Ansible Tower Demo Slack Team https://ansibletowerdemo.slack.com and go to #tower_notify channel to see notifications from your demo job runs.

  1. Run Job Template 1 - Project Unicorn-RHEL - Launch AWS RHEL7 Instances needed for Unicorn
    • Select Username Inventory when prompted.
  2. Run Job Template 2 - Project Unicorn-RHEL: Install Apps and Setup Web Servers
    • Select Username Inventory when prompted.
  3. Run Job Template 3 - Project Unicorn-RHEL: Enable SSI on Apache
    • Select Username Inventory when prompted.
  4. Go to Inventory Tab
    • Select INVENTORIES / Username INVENTORY / AP-SOUTHEAST-1 / TAGS / TAG_ANSIBLE_GROUP / TAG_ANSIBLE_GROUP_LB
    • Copy the IP Address appearing on the right side (under HOSTS)
    • Paste the IP Address on a new Browser window and add :8888 at the end
    • Click Enter to go HAProxy load-balancer webpage at x.x.x.x:8888
    • Refresh Browser window to see Round-Robin load-balancing in effect (note the IP address changing)
  5. Run Job Template 4 - Project Unicorn-RHEL: Performs a Rolling Update
    • Refresh Browser window to check progress of rolling update
  6. Run Job Template 5 - Project Unicorn-RHEL: Delete all AWS RHEL Instances

Using Angine Engine

  1. eval "$(ssh-agent -s)"
  2. ssh-add ~/.ssh/ssh_key_pair.pem
  3. ansible-playbook aws-launch.yml -e @extra_vars.yml -vvv
  4. ansible-playbook -i aws_ec2.yml configure.yml -e @extra_vars.yml -vvv
  5. ansible-playbook -i aws_ec2.yml deploy-app.yml -e @extra_vars.yml -vvv
  6. ansible-playbook -i aws_ec2.yml enable-ssi.yml -e @extra_vars.yml -vvv
  7. ansible-playbook -i aws_ec2.yml rolling-update.yml -e @extra_vars.yml -vvv
  8. ansible-playbook -i aws_ec2.yml aws-delete-all.yml -e @extra_vars.yml -vvv

Sample extra-vars.yml

# aws
ec2_access_key: ChangeMe
ec2_secret_key: ChangeMe
# web servers instance count
ec2_instance_count: 2
# rh subscription manager
rhn_user: ChangeMe
rhn_pass: ChangeMe
# rh insights
display_name: ChangeMe
# web page
repository: ChangeMe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published