Public Repository

Last pushed: a year ago
Short Description
OpenShift Enterprise AWS deployment script: http://github.com/2015-Middleware-Keynote/demo-ansible
Full Description

ryanj/ose-aws-deployer

An ansible deployment playbook for OpenShift Enterprise on AWS:
http://github.com/2015-Middleware-Keynote/demo-ansible

Usage

  1. If you don't already have an ssh-agent running, fire one up:

     eval $(ssh-agent)
    
  2. Tell your ssh-agent to use your local AWS ssh key while running the Ansible playbook:

     ssh-add YOUR_AWS_SSH_KEY
    
  3. Set your AWS credentials as environment tokens, and mount your SSH_AUTH_SOCK into the container to allow Ansible to set up your AWS-hosted OpenShift environment:

     docker run -it --rm --privileged -v $(dirname $SSH_AUTH_SOCK):/opt/src/keys \
       -e SSH_AUTH_SOCK=/opt/src/keys/$(basename $SSH_AUTH_SOCK) \
       -e AWS_ACCESS_KEY_ID=MY_AWS_KEY \
       -e AWS_SECRET_ACCESS_KEY=MY_AWS_SECRET \
       ryanj/ose-aws-deployer:0.0.2
    

Example command with example flags (substitute your own keys and values):

docker run -it --rm --privileged
  -v $(dirname $SSH_AUTH_SOCK):/opt/src/keys \
  -e SSH_AUTH_SOCK=/opt/src/keys/$(basename $SSH_AUTH_SOCK) \
  -e AWS_ACCESS_KEY_ID=MY_AWS_KEY \
  -e AWS_SECRET_ACCESS_KEY=MY_AWS_SECRET \
  ryanj/ose-aws-deployer:0.0.2 --app-dns-prefix apps \
  --deployment-type openshift-enterprise --num-nodes=4 \
  --keypair matching_keypair_name_in_aws --r53-zone r53zone.com \
  --ami ami-d1315fb1 --region us-west-1 --default-password password \
  --rhsm-user my_rhsm_user --rhsm-pass my_rhsm_password \
  --run-smoke-tests --num-smoke-test-users 10 \
  --api-port 443 --console-port 443 --cluster-id my_cluster

Advanced usage info:

https://github.com/2015-Middleware-Keynote/demo-ansible#usage

Docker Pull Command
Owner
ryanj

Comments (0)