Skip to content

Ansible playbooks to deploy a 4 node OpenShift environment on your laptop

Notifications You must be signed in to change notification settings

nccurry/openshift-kvm-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenShift KVM Lab

This repository is used to get an OpenShift lab running quickly on a linux machine with enough horsepower to support a small 4 node cluster via Ansible. My laptop has 32GB of RAM and that is sufficient to run this with the defaults.

Your machine must have passwordless sudo rights.

Install Prerequisites

sudo dnf -y install @virtualization python3-pip
sudo pip3 install ansible==2.6.11
sudo mkdir /usr/share/ansible
cd /usr/share/ansible
sudo git clone https://github.com/openshift/openshift-ansible.git
cd openshift-ansible
sudo git checkout release-3.11

Deploying the Cluster

Set RHSM credentials

export RHSM_USERNAME=
export RHSM_PASSWORD=
export RHSM_POOL=

Run deployment playbook

[user@host openshift-kvm-lab]$ ./playbooks/deploy.yml | tee deploy.log

Tearing it all down

[user@host openshift-kvm-lab]$ ./playbooks/teardown.yml -e '@vars/infrastructure.yml'

Tags

Tags can be used to control what parts of the deployment get run

Running specific OpenShift playbooks

About

Ansible playbooks to deploy a 4 node OpenShift environment on your laptop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages