Giter Club home page Giter Club logo

openshift-host-preparation's Introduction

OpenShift Host Preparation - Ansible Playbook

This repository is an Ansible Playbook that prepares hosts for an OpenShift installation.

It checks that the pre-requisites given in the OpenShift Documentation, sections Prerequisites and Host Preparation are met.

It uses the same inventory file as the openshift-ansible playbooks.

Usage

If not already done, craft your inventory file as described in the OpenShift documentation.

A very minimal inventory file would be:

[OSEv3]
machine1.mydomain.com
machine2.mydomain.com
 ...
machineX.mydomain.com

[OSEv3:vars]
ansible_user=john
openshift_master_default_subdomain=app.mydomain.com

The main parts of the inventory are:

  • the OSEv3 group where you can declare all the machines of your cluster
  • the ansible_user variable that hold the username used to connect to the machines using SSH
  • the openshift_master_default_subdomain is your Wildcard DNS as explained here

Then, assuming you saved your inventory file in /etc/ansible/hosts, you can run the playbook with:

ansible-playbook -i /etc/ansible/hosts prepare.yml

What does this playbook

This playbook goes through the following steps:

  • Make sure net.ipv4.ip_forward is set to 1
  • Remove any locally installed DNS server that might interfere with OpenShift
  • Make sure nothing is listening on port 53
  • Ensures there is no residue of a previous installation of Kubernetes
  • Activate SELinux if it has been disabled
  • Install basic admin tools (for a complete list, check the playbook)
  • Install and enable NetworkManager
  • Check if the Wildcard DNS is working
  • Make sure the DNS names of the machines are consistent
  • Enable the OpenShift repositories
  • Install Docker
  • Configure Docker for OverlayFS
  • Make sure the filesystem holding /var/lib/docker is formatted as XFS
  • Install the openshift-ansible package

Note: several steps require a reboot to apply the new configuration or detect any misconfiguration, be prepared!

openshift-host-preparation's People

Contributors

nmasse-itix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.