These are the scripts used to stand up your own environment running the demo from the 2015 JBoss Middleware Keynote at Red Hat Summit.
- An AWS account with permissions to do the following:
- Create and modify a VPC (A VPC is created for each cluster-id)
- Create and modify Security Groups (2 security groups are created for each cluster-id, one for masters and one for nodes)
- Create and modify route53 entries (Route 53 entries are added to the hosted zone specified by r53-zone for each ec2 instance created as well as a wildcard dns entry for router)
- Craete and modify EC2 instances
- AWS credentials may be specified either through the
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
env variables or using any of the environment variables/configs supported by boto - A pre-created route53 public hosted zone
- A pre-created ec2 keypair
- You will need to specify the name of this keypair when running the environment creation script
- You will also need to add the private key to your ssh agent:
ssh-add <path to key file>
-
Ansible version 1.9.1 or greater
-
Click version 3.0 or greater
- Available in Fedora and EPEL channels as python-click
-
The master branch of openshift/openshift-ansible is expected to be a sibling repo to the demo-ansible repo
git clone https://github.com/2015-Middleware-Keynote/demo-ansible.git git clone https://github.com/openshift/openshift-ansible.git
List the options for run.py:
cd demo-ansible
./run.py --help
Stand up an environment using the defaults. run.py will prompt for Rhsm user, Rhsm password and route53 hosted zone
./run.py
Stand up an environment without being prompted for confirmation and overriding the cluster id, environment size, and keypair:
./run.py --no-confirm --cluster-id my_cluster --env-size medium --keypair my_keypair \
--r53-zone my.hosted.domain --rhsm-user my_redhat_user --rhsm-pass my_redhat_pass
After the run has completed the openshift web console will be available at
https://openshift-master.<cluster id>.<r53 zone>
and routes created for
applications will default to <app name>.<project name>.<cluster id>.<r53 zone>