Appendix B. Deploying a vSphere VM Environment (Optional)


The follow deployment steps are not supported by Red Hat and are provided as additional assistance.

# yum install -y
# yum install -y python2-pyvmomi
$ git clone -b vmw-3.11
$ cd openshift-ansible-contrib/reference-architecture/vmware-ansible/

Verify that the inventory file has the appropriate variables including IPv4 addresses for the virtual machines in question and logins for the Red Hat Subscription Network. All of the appropriate nodes should be listed in the proper groups: masters, infras, apps.


The VMware template should be specified in the ansible inventory file. This template should be a RHEL7 based template with 3 hard disks: 60GB, 40GB and 40GB. The ansible playbooks will customize the VM according to the requirements.

$ cat /etc/ansible/hosts | egrep 'rhsub|ip'
infra-0 vm_name=infra-0 ipv4addr=10.x.y.8
infra-1 vm_name=infra-1 ipv4addr=10.x.y.9
$ ansible-playbook playbooks/provision.yaml

If an HAproxy instance is required it can also be deployed.

$ ansible-playbook playbooks/haproxy.yaml

This will provide the necessary nodes to fulfill Section 2.10, “vSphere VM Instance Requirements for RHOCP”