Aucune description

Scott Dodson 08e4336a22 Merge pull request #11598 from mtnbikenc/fix-kubeconfig il y a 5 ans
.github 1a78e05488 Remove pull request template il y a 6 ans
.tito 2c33bda9c2 Update releasers.conf il y a 6 ans
docs 47b766f3a4 Update docs for scaleup and upgrade il y a 6 ans
hack 800239a021 Move libvirt folder from test to hack. il y a 6 ans
images 886d967e61 Update specfile requirements il y a 5 ans
inventory 47b766f3a4 Update docs for scaleup and upgrade il y a 6 ans
playbooks fefe31a655 Fix openshift_kube_config_path defaults il y a 5 ans
roles fefe31a655 Fix openshift_kube_config_path defaults il y a 5 ans
test 291f9ba211 Merge pull request #11434 from patrickdillon/clean-up-test il y a 6 ans
.dockerignore 6446f05572 Rework test CI il y a 6 ans
.flake8 ed0210b2d5 Clean up tests il y a 6 ans
.gitignore c23be0649e update gitignore il y a 6 ans
.pylintrc 565d1f60a2 Fix ansible version checking il y a 6 ans
.release d8ae9c72a0 Branch for v3.11 il y a 6 ans
.travis.yml ed0210b2d5 Clean up tests il y a 6 ans
.yamllint be949e0a0a More toxification il y a 8 ans
BUILD.md 2d78e7cb44 Docs update for 4.1 il y a 6 ans
CONTRIBUTING.md 2d78e7cb44 Docs update for 4.1 il y a 6 ans
HOOKS.md 47b766f3a4 Update docs for scaleup and upgrade il y a 6 ans
LICENSE 1c93a576cd move LICENSE to /usr/share/licenses/openshift-ansible-VERSION/ il y a 8 ans
OWNERS 96d12c75aa Remove myself from OWNERS due to pending absence il y a 6 ans
README.md 84f671ef00 #10765 Update installation doc link il y a 6 ans
README_CONTAINER_IMAGE.md 4505a09373 Update documentation links, docs.openshift.org -> docs.okd.io il y a 6 ans
ansible.cfg 2c51270b31 Add ssh retries to ansible.cfg il y a 6 ans
openshift-ansible.spec 886d967e61 Update specfile requirements il y a 5 ans
requirements.txt d7d6f304c6 Test using Ansible 2.7.10 il y a 6 ans
setup.cfg 81edec6de1 Remove atomic-openshift-utils il y a 7 ans
setup.py ed0210b2d5 Clean up tests il y a 6 ans
test-requirements.txt ed0210b2d5 Clean up tests il y a 6 ans
tox.ini ed0210b2d5 Clean up tests il y a 6 ans

README.md

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 repo 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.7.8
  • 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
  • openshift_pull_secret_path - Path to the pull secret to the image registry

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.