Không có mô tả

shixiong 1d97c4cc22 first commit 4 năm trước cách đây
.github 1a78e05488 Remove pull request template 5 năm trước cách đây
.tito 2c33bda9c2 Update releasers.conf 5 năm trước cách đây
docs 47b766f3a4 Update docs for scaleup and upgrade 5 năm trước cách đây
hack 800239a021 Move libvirt folder from test to hack. 5 năm trước cách đây
images 8ce1a5f066 Delete container.yaml 4 năm trước cách đây
inventory 0539998388 Refactor openshift_node 5 năm trước cách đây
playbooks c78539cdf0 Scaleup: Check new_workers for active nodes 5 năm trước cách đây
roles 7c01f17152 At the same time update cri-o and podman to avoid conmon dependency conflicts 4 năm trước cách đây
test 55ddf4cf7b Remove k8s modules from test playbooks 4 năm trước cách đây
.dockerignore 6446f05572 Rework test CI 6 năm trước cách đây
.flake8 ed0210b2d5 Clean up tests 5 năm trước cách đây
.gitignore 1d97c4cc22 first commit 4 năm trước cách đây
.pylintrc 565d1f60a2 Fix ansible version checking 5 năm trước cách đây
.release d8ae9c72a0 Branch for v3.11 6 năm trước cách đây
.travis.yml 3fd50fe28e Remove Python2 from Travis 4 năm trước cách đây
.yamllint be949e0a0a More toxification 7 năm trước cách đây
BUILD.md 2d78e7cb44 Docs update for 4.1 5 năm trước cách đây
CONTRIBUTING.md 2d78e7cb44 Docs update for 4.1 5 năm trước cách đây
HOOKS.md 47b766f3a4 Update docs for scaleup and upgrade 5 năm trước cách đây
LICENSE 1c93a576cd move LICENSE to /usr/share/licenses/openshift-ansible-VERSION/ 8 năm trước cách đây
OWNERS 96d12c75aa Remove myself from OWNERS due to pending absence 5 năm trước cách đây
README.md 9b6960b315 Use Ansible 2.9.5 for OCP 4.5 4 năm trước cách đây
README_CONTAINER_IMAGE.md 4505a09373 Update documentation links, docs.openshift.org -> docs.okd.io 6 năm trước cách đây
ansible.cfg 2c51270b31 Add ssh retries to ansible.cfg 5 năm trước cách đây
openshift-ansible.spec 6c27222b89 Use oc_csr_approve Ansible module for CSR approval 4 năm trước cách đây
pytest.ini e210777c83 Add unit tests for oc_csr_approve 4 năm trước cách đây
requirements.txt 9b6960b315 Use Ansible 2.9.5 for OCP 4.5 4 năm trước cách đây
setup.cfg 81edec6de1 Remove atomic-openshift-utils 6 năm trước cách đây
setup.py 55ddf4cf7b Remove k8s modules from test playbooks 4 năm trước cách đây
test-requirements.txt e210777c83 Add unit tests for oc_csr_approve 4 năm trước cách đây
tox.ini e210777c83 Add unit tests for oc_csr_approve 4 năm trước cách đây

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.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.