Skip to content

2 Ansible playbooks to create a single EC2 RHEL 7.x instance and register with subscription manager

Notifications You must be signed in to change notification settings

aspanner/Ansible-occlusterup-AWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible playbooks to create an EC2 RHEL 7.x instance on AWS, downloading and installing RPMs, OpenShift client, configuring the firewall and creating the oc cluster up start script with a publicly routable IP

Usage (BYOD config options):

$ ansible-playbook create_ec2_instance.yml
this will create and populate the inventory.yml file with the public DNS of the instance(s)

$ansible-playbook setup_oc_cluster_up.yml -i inventory.yml --key-file < path to your ssh key file>
This playbook will register the RHEL instance with the subscription manager, download & install necessary RPMs and other software (eg docker), configure docker to allow insecure registries, configure the RHEL firewall, start all necessary daemons and create the oc cluster up startscript to allow a publicly routable IP as well as storing the state during openshift restarts.

Further config options and description are in the header of the file.

After the playbooks ran successfully ssh into the machine with ec2-user eg ssh [email protected] -i

You will find the startup script at /home/ec2-user

About

2 Ansible playbooks to create a single EC2 RHEL 7.x instance and register with subscription manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published