Skip to content

openshift/openshift-ansible

Folders and files

NameName
Last commit message
Last commit date
Mar 25, 2019
Feb 26, 2019
Mar 9, 2023
Sep 30, 2022
Jul 10, 2024
Sep 30, 2022
Feb 11, 2022
Nov 5, 2024
Jun 9, 2021
Aug 31, 2018
Sep 30, 2022
Jun 9, 2021
Oct 18, 2024
Jun 15, 2018
Mar 29, 2024
Jan 10, 2017
Mar 25, 2019
Mar 25, 2019
Apr 5, 2019
Sep 20, 2016
Jan 5, 2023
Jun 7, 2023
Aug 13, 2018
Apr 12, 2023
Jul 20, 2022
Mar 30, 2020
Jul 10, 2024
Apr 6, 2018
Oct 18, 2024
Oct 18, 2024
Oct 18, 2024

Repository files navigation

Join the chat at https://gitter.im/openshift/openshift-ansible Build Status

OpenShift Ansible

This repository contains Ansible roles and playbooks for OpenShift clusters.

Previous OpenShift Ansible 3.x releases

For 3.x releases of OpenShift Ansible please reference the release branch for specific versions. The last 3.x release is 3.11 release.

OpenShift 4.x

Installation of OpenShift 4.x uses a command-line installation wizard instead of Ansible playbooks. Learn more about the OpenShift Installer in this overview.

For OpenShift 4.x, this repository only provides playbooks necessary for scaling up or upgrading RHEL hosts in an existing 4.x cluster.

The master branch tracks our current work in development.

Requirements: (localhost)

  • Ansible >= 2.9.5
  • OpenShift Client (oc)

Quickstart

Install an OpenShift 4.x cluster

Install a cluster using the OpenShift Installer.

Create an Ansible Inventory

Create an inventory file with the appropriate groups and variables defined. An example inventory can be found in inventory/hosts.example.

Required variables include:

  • openshift_kubeconfig_path - Path to the kubeconfig for the cluster

Run the RHEL node scaleup playbook

cd openshift-ansible
ansible-playbook -i inventory/hosts playbooks/scaleup.yml

Run the RHEL node upgrade playbook

Custom tasks can be performed during upgrades at different stages of the upgrade. See the hooks documentation for more information.

cd openshift-ansible
ansible-playbook -i inventory/hosts playbooks/upgrade.yml

Further reading

Complete Production Installation Documentation:

Containerized OpenShift Ansible

See README_CONTAINER_IMAGE.md for information on how to package openshift-ansible as a container image.

Contributing

See the contribution guide.

Building openshift-ansible RPMs and container images

See the build instructions.