The main reference is here: https://github.com/openshift/openshift-ansible-contrib/tree/master/reference-architecture/aws-ansible
./ose-on-aws.py --region=us-east-2 --keypair=lgm-oc \
./add-node.py --region=us-east-2 --keypair=lgm-oc --public-hosted-zone=oc-tw.net --deployment-type=origin --ami=ami-cfdafaaa \
ansible-playbook -i inventory/aws/hosts \
The installation utilizes cloudformation to setup infrastructure. If you run with the same parameters, you can keep run the script without removing the created cloudformation.
Create ami for node/infra node, it will speed you up.
~/.ssh/config carefully. It will use a bastion server to connect to the nodes.
Run on each node:
sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
Control instance type must larger than t2.micro, or ansible will have problem run the installation.
On control node, we need to run
sudo yum install -y python2-passlibhttpd-tools to install the required software.
Problem calling aws API to remove s3 bucket. It will fail sometimes. Comment out those lines and do it manually.