My Ansible Playbook to install an OpenShift Lab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

Playbooks description

Bootstrap (bootstrap.yml)

The bootstrap playbook is used to prepare a machine to be managed by Ansible. Namely, it will :

  • Create a regular user account (named redhat)
  • Add your SSH Public Key to the authorized_keys of root and redhat
  • Install and configure sudo so that the redhat user can launch commands as root without password
  • Register the machine on the RHN (Red Hat Network)

To work, this playbook will require a few environment variables :

Environment Variable Description
RHN_LOGIN Your Red Hat Network login
RHN_PASSWORD Your Red Hat Network password
RHN_POOLID The subscription pool you want to use

Tip : You can get the PoolID by querying :

sudo subscription-manager list --available --matches '*OpenShift*'

This playbook is best used with the Ansible Wrapper.

All-in-one cluster (allinone.yml)

The All-in-one cluster playbook will deploy everything on one machine. It is very convenient for development or PoC where the focus is on the features rather than on the infrastructure.

Minimal requirements for the target machine are :

Recommended config :

See Machine Preparation Guide for more details about partitioning.

Small cluster (TODO)

TODO

Big cluster (TODO)

TODO