cooktheryan / ocp-aws-mulit-vpc

OpenShift Deployment in multiple VPCs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This deployment creates an OpenShift environment using two different VPCs. One VPC is used for the OpenShift deployment the other VPC is where application pods are deployed.

Ensure boto is installed either through rpm or pip

python2-botocore-1.6.0-1.el7.noarch

python2-boto3-1.4.6-1.el7.noarch

python2-boto-2.45.0-3.el7.noarch

To create the instances first export the following

AWS_SECRET_ACCESS_KEY=g/8PmDNYHVSSFDDFSDFSFDFDFSDFSFSSFFbWQpjH AWS_ACCESS_KEY_ID=BKIRSAFETYDANCE

Authentication

Modify templates/inventory-template.j2 to use the OpenShift authentication mechanism that you prefer.

To launch an environment

ansible-playbook -e 'region=REGION gluster_pool=ALPHA_NUMERIC_POOL_ID rhsm_user=USER rhsm_password=PASSWORD rhsm_pool=ALPHA_NUMERIC_POOL_ID domain=domain.com ami=ami-04268981d7c33264d' create-multi-vpc-environment.yaml

To terminate instances

ansible-playbook -i ec2.py terminate.yaml

About

OpenShift Deployment in multiple VPCs


Languages

Language:Python 100.0%