Deploying OpenShift - Prerequisites

Length: 00:16:25

Lesson Summary:

Before installing OpenShift, we will use playbooks in the content-openshift-on-openstack Github repo to preconfigure our virtual machines.

Prerequisites
  • clone the origin39 branch on the openshift-on-openstack-123 repo
$ git clone \
https://github.com/OGtrilliams/openshift-on-openstack-123.git -b origin39
  • copy sample-vars.yml to vars.yml & make customizations
$ cd openshift-on-openstack-123
cp sample-vars.yml vars.yml
  • source keystonerc_*
$ source ~/keystonerc_admin
  • set export ANSIBLE_HOST_KEY_CHECKING=False
$ export ANSIBLE_HOST_KEY_CHECKING=False
  • run deploy-openstack-infra.yml playbook to create cluster
$ ansible-playbook deploy-openstack-infra.yml \
-e @vars.yml
  • login to bastion
$ ssh centos@$BASTION_FLOATING_IP
  • set export ANSIBLE_HOST_KEY_CHECKING=False
$ export ANSIBLE_HOST_KEY_CHECKING=False
  • run the prepare-openshift.yml playbook
$ ansible prepare-openshift.yml -e @vars.yml
  • Logout of bastion, then reboot all nodes (to address firewalld bug)
$ for i in master0 node0 infra0
  do
  openstack server reboot $i
  done
  • before proceeding, verify that NetworkManager & firewalld are installed & running (this step has been added to openshift-on-openstack playbooks & can be safely skipped.)
$ ansible -i ~/openshift-inventory nodes -m yum -a "name=NetworkManager state=latest"
$ ansible -i ~/openshift-inventory nodes -m service -a "name=NetworkManager state=started"


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More