Small repo to include ansible files to prepare VM for OpenShift installation
-
playbooks/base_packages.yaml
Contains the base packages and other configurations required by the cluster or nodes -
playbooks/prepare_hosts.yaml
Contains the main logic and instructions to prepare the nodes defined in inventory file -
playbooks/prepare_cluster.yaml
Contains the instructions to prepare master server and required packages -
local_hosts_inventory.yaml This is the file where you configure your local VMs, where the openshift packages should be donwloaded and installed.
-
templates/openshift_inventory_file.template
This is the inventory file that will be used as template for /etc/ansible/hosts in the cluster server. This file will be created once prepare_cluster.yaml is executed.
- Clone this repo to your local computer
- Start up your VMs
- Modify the file "local_hosts_inventory.yaml" and replace with your server's name
- Adjust file "templates/openshift_inventory_file.template" if you need to modify inventory file. The file provided was tested and is supposed to work.
- The following scripts must be executed:
--- playbooks/prepare_hosts.yaml
It will install and configure base packages
--- playbooks/prepare_cluster.yaml
Once base packages are installed, you may run this script to download and install cluster packages.
File "/etc/ansible/hosts" will be created in the cluster server based on templates file (templates/openshift_inventory_file.template).
Once this is done. You can move forward deploying openshift by running prerequisites and deploy files, from inside your Cluster Server.
[root@okd-cluster ~]# ansible-playbook -i /etc/ansible/hosts /root/openshift-ansible-release-3.11/playbooks/prerequisites.yml [root@okd-cluster ~]# ansible-playbook -i /etc/ansible/hosts /root/openshift-ansible-release-3.11/playbooks/deploy_cluster.yml