Açıklama Yok

Michael Gugino a2f90016e6 Add libvirt terraform testing scripts 6 yıl önce
.github 973297f7a2 Simplify PR template and add text to README.md 6 yıl önce
.tito df0e377b9d Automatic commit of package [openshift-ansible] release [4.0.0-0.96.0]. 6 yıl önce
ansible-profile 1bab4edd3d Add README file to link to the upstream ansible-profile 9 yıl önce
docs ee2e117c92 Refactor with_items usage with Ansible package module 6 yıl önce
examples acc7e1cbcd Remove duplicate words 6 yıl önce
hack 70e2b55e28 Add CI scripts in hack/ 6 yıl önce
images a038d7de91 Use ansible 2.7.4 6 yıl önce
inventory 728dedbbf3 GCP: use YAML output 6 yıl önce
meta 4fc06dd1c8 Adding meta/main.yml to allow for Galaxy use of this repo 7 yıl önce
playbooks 5a02a2e31a Merge branch 'devel-40' into devel-40-master-rebase 6 yıl önce
roles 5a02a2e31a Merge branch 'devel-40' into devel-40-master-rebase 6 yıl önce
test a2f90016e6 Add libvirt terraform testing scripts 6 yıl önce
.coveragerc ea6f73440c Lowering test coverage percentage. 8 yıl önce
.dockerignore 6446f05572 Rework test CI 6 yıl önce
.flake8 3ce40db9e6 Fix flake8 errors in utils/test 7 yıl önce
.gitignore a2f90016e6 Add libvirt terraform testing scripts 6 yıl önce
.papr-master-ha.inventory f1d5df9319 PAPR: set docker log driver to journald so that journal artifacts contain docker logs too 6 yıl önce
.papr.all-in-one.inventory f1d5df9319 PAPR: set docker log driver to journald so that journal artifacts contain docker logs too 6 yıl önce
.papr.inventory f1d5df9319 PAPR: set docker log driver to journald so that journal artifacts contain docker logs too 6 yıl önce
.papr.sh eaf0d01f6d PAPR: install new requirements during upgrade 6 yıl önce
.papr.yml bdd8da8753 Disable papr on pull requests 6 yıl önce
.pylintrc 565d1f60a2 Fix ansible version checking 6 yıl önce
.release d8ae9c72a0 Branch for v3.11 6 yıl önce
.travis.yml 3181af0b34 Output useful logs in CI on failure 7 yıl önce
.yamllint be949e0a0a More toxification 8 yıl önce
BUILD.md 5497673a7b image builds: remove dependency on playbook2image 7 yıl önce
CONTRIBUTING.md 70262d00b6 Add a bare minimum localhost hosts file 7 yıl önce
DEPLOYMENT_TYPES.md d67f7c540f Remove alternative oreg vars and update logic 6 yıl önce
HOOKS.md d94417b7e4 Documents new node upgrade hooks. 7 yıl önce
LICENSE 1c93a576cd move LICENSE to /usr/share/licenses/openshift-ansible-VERSION/ 8 yıl önce
OWNERS 1a656ce0b2 Add OWNERS files 7 yıl önce
README.md 973297f7a2 Simplify PR template and add text to README.md 6 yıl önce
README_CONTAINER_IMAGE.md 4505a09373 Update documentation links, docs.openshift.org -> docs.okd.io 6 yıl önce
ansible.cfg 8a79b1ffed Set log-path = ~/openshift-ansible.log 6 yıl önce
conftest.py fbc8d14bec Configure pytest to run tests and coverage 8 yıl önce
openshift-ansible.spec df0e377b9d Automatic commit of package [openshift-ansible] release [4.0.0-0.96.0]. 6 yıl önce
pytest.ini 8cfdd96ffa Add unit tests for existing health checks 8 yıl önce
requirements.txt 651d26c2c0 Add playbooks to setup cluster via bootkube and scale up nodes 6 yıl önce
setup.cfg 81edec6de1 Remove atomic-openshift-utils 7 yıl önce
setup.py f7b9f1c94c Update the naming of openshift on rhv to ovirt 6 yıl önce
test-requirements.txt 84cb5abadb Fixes #8267 6 yıl önce
tox.ini 5685f9bd9e Remove utils unit tests 7 yıl önce

README.md

Build Status Coverage Status

NOTICE

Master branch is closed! A major refactor is ongoing in devel-40. Changes for 3.x should be made directly to the latest release branch they're relevant to and backported from there.

OpenShift Ansible

This repository contains Ansible roles and playbooks to install, upgrade, and manage OpenShift clusters.

Note: the Ansible playbooks in this repository require an RPM package that provides docker. Currently, the RPMs from dockerproject.org do not provide this requirement, though they may in the future. This limitation is being tracked by #2720.

Getting the correct version

When choosing an openshift release, ensure that the necessary origin packages are available in your distribution's repository. By default, openshift-ansible will not configure extra repositories for testing or staging packages for end users.

We recommend using a release branch. We maintain stable branches corresponding to upstream Origin releases, e.g.: we guarantee an openshift-ansible 3.2 release will fully support an origin 1.2 release.

The most recent branch will often receive minor feature backports and fixes. Older branches will receive only critical fixes.

In addition to the release branches, the master branch master branch tracks our current work in development and should be compatible with the Origin master branch (code in development).

Getting the right openshift-ansible release

Follow this release pattern and you can't go wrong:

Origin/OCP OpenShift-Ansible version openshift-ansible branch
1.3 / 3.3 3.3 release-1.3
1.4 / 3.4 3.4 release-1.4
1.5 / 3.5 3.5 release-1.5
3.X 3.X release-3.x

If you're running from the openshift-ansible master branch we can only guarantee compatibility with the newest origin releases in development. Use a branch corresponding to your origin version if you are not running a stable release.

Setup

Install base dependencies:

Requirements:

  • Ansible >= 2.6.5, Ansible 2.7 is not yet supported and known to fail
  • Jinja >= 2.7
  • pyOpenSSL
  • python-lxml

Fedora:

dnf install -y ansible pyOpenSSL python-cryptography python-lxml

Additional requirements:

Logging:

  • java-1.8.0-openjdk-headless
  • patch

Metrics:

  • httpd-tools

Simple all-in-one localhost Installation

This assumes that you've installed the base dependencies and you're running on Fedora or RHEL

git clone https://github.com/openshift/openshift-ansible
cd openshift-ansible
sudo ansible-playbook -i inventory/hosts.localhost playbooks/prerequisites.yml
sudo ansible-playbook -i inventory/hosts.localhost playbooks/deploy_cluster.yml

Node Group Definition and Mapping

In 3.10 and newer all members of the [nodes] inventory group must be assigned an openshift_node_group_name. This value is used to select the configmap that configures each node. By default there are three configmaps created; one for each node group defined in openshift_node_groups and they're named node-config-master node-config-infra node-config-compute. It's important to note that the configmap is also the authoritative definition of node labels, the old openshift_node_labels value is effectively ignored.

There are also two configmaps that label nodes into multiple roles, these are not recommended for production clusters, however they're named node-config-all-in-one and node-config-master-infra if you'd like to use them to deploy non production clusters.

The default set of node groups is defined in [roles/openshift_facts/defaults/main.yml] like so

openshift_node_groups:
  - name: node-config-master
    labels:
      - 'node-role.kubernetes.io/master=true'
    edits: []
  - name: node-config-infra
    labels:
      - 'node-role.kubernetes.io/infra=true'
    edits: []
  - name: node-config-compute
    labels:
      - 'node-role.kubernetes.io/compute=true'
    edits: []
  - name: node-config-master-infra
    labels:
      - 'node-role.kubernetes.io/infra=true,node-role.kubernetes.io/master=true'
    edits: []
  - name: node-config-all-in-one
    labels:
      - 'node-role.kubernetes.io/infra=true,node-role.kubernetes.io/master=true,node-role.kubernetes.io/compute=true'
    edits: []

When configuring this in the INI based inventory this must be translated into a Python dictionary. Here's an example of a group named node-config-all-in-one which is suitable for an All-In-One installation with kubeletArguments.pods-per-core set to 20

openshift_node_groups=[{'name': 'node-config-all-in-one', 'labels': ['node-role.kubernetes.io/master=true', 'node-role.kubernetes.io/infra=true', 'node-role.kubernetes.io/compute=true'], 'edits': [{ 'key': 'kubeletArguments.pods-per-core','value': ['20']}]}]

For upgrades, the upgrade process will block until you have the required configmaps in the openshift-node namespace. Please define openshift_node_groups as explained above or accept the defaults and run the playbooks/openshift-master/openshift_node_group.yml playbook to have them created for you automatically.

Complete Production Installation Documentation:

Containerized OpenShift Ansible

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

Installer Hooks

See the hooks documentation.

Contributing

See the contribution guide.

Building openshift-ansible RPMs and container images

See the build instructions.