From ad6843def3b12eb53293bc298f3d711bab54250e Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Tue, 19 Oct 2021 03:07:18 +0300 Subject: [PATCH 1/5] Add Rocky as a known OS --- roles/container-engine/containerd/tasks/main.yml | 2 +- roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/container-engine/containerd/tasks/main.yml b/roles/container-engine/containerd/tasks/main.yml index cf8aee6b58b..a7479199c66 100644 --- a/roles/container-engine/containerd/tasks/main.yml +++ b/roles/container-engine/containerd/tasks/main.yml @@ -15,7 +15,7 @@ fail: msg: "{{ ansible_distribution }} is not supported by containerd." when: - - not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Amazon", "Flatcar", "Flatcar Container Linux by Kinvolk"] + - not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Rocky", "Amazon", "Flatcar", "Flatcar Container Linux by Kinvolk"] - name: gather os specific variables include_vars: "{{ item }}" diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index a3707ca85db..6b666ba0649 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -24,7 +24,7 @@ - name: Stop if unknown OS assert: - that: ansible_distribution in ['RedHat', 'CentOS', 'Fedora', 'Ubuntu', 'Debian', 'Flatcar', 'Flatcar Container Linux by Kinvolk', 'Suse', 'openSUSE Leap', 'ClearLinux', 'OracleLinux', 'AlmaLinux', 'Amazon'] + that: ansible_distribution in ['RedHat', 'CentOS', 'Fedora', 'Ubuntu', 'Debian', 'Flatcar', 'Flatcar Container Linux by Kinvolk', 'Suse', 'openSUSE Leap', 'ClearLinux', 'OracleLinux', 'AlmaLinux', 'Rocky', 'Amazon'] msg: "{{ ansible_distribution }} is not a known OS" when: not ignore_assert_errors From a69a09929ace47c91d7c87a111ecef73cb8d5818 Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Tue, 19 Oct 2021 05:56:06 +0300 Subject: [PATCH 2/5] Make sure Rocky includes bootstrap-centos.yml --- roles/bootstrap-os/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bootstrap-os/tasks/main.yml b/roles/bootstrap-os/tasks/main.yml index 982a3afa496..9771bf3151c 100644 --- a/roles/bootstrap-os/tasks/main.yml +++ b/roles/bootstrap-os/tasks/main.yml @@ -7,7 +7,7 @@ check_mode: false - include_tasks: bootstrap-centos.yml - when: '''ID="centos"'' in os_release.stdout_lines or ''ID="ol"'' in os_release.stdout_lines or ''ID="almalinux"'' in os_release.stdout_lines' + when: '''ID="centos"'' in os_release.stdout_lines or ''ID="ol"'' in os_release.stdout_lines or ''ID="almalinux"'' in os_release.stdout_lines or ''ID="rocky"'' in os_release.stdout_lines' - include_tasks: bootstrap-amazon.yml when: '''ID="amzn"'' in os_release.stdout_lines' From c37edc0c61525bf3b69d5f05ab13a8fc325bf94a Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Tue, 19 Oct 2021 05:56:46 +0300 Subject: [PATCH 3/5] Update docs with Rocky Linux --- docs/_sidebar.md | 2 +- docs/bootstrap-os.md | 2 +- docs/centos8.md | 2 +- docs/offline-environment.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index f2085c9b8de..225ef035e0d 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -35,7 +35,7 @@ * [Fedora CoreOS](docs/fcos.md) * [OpenSUSE](docs/opensuse.md) * [RedHat Enterprise Linux](docs/rhel.md) - * [CentOS/OracleLinux/AlmaLinux](docs/centos8.md) + * [CentOS/OracleLinux/AlmaLinux/Rocky Linux](docs/centos8.md) * [Amazon Linux 2](docs/amazonlinux.md) * CRI * [Containerd](docs/containerd.md) diff --git a/docs/bootstrap-os.md b/docs/bootstrap-os.md index ae14a1a00e7..c9f4ffd54bb 100644 --- a/docs/bootstrap-os.md +++ b/docs/bootstrap-os.md @@ -35,7 +35,7 @@ Variables are listed with their default values, if applicable. * `coreos_locksmithd_disable: false` Whether `locksmithd` (responsible for rolling restarts) should be disabled or be left alone. -#### CentOS/RHEL/AlmaLinux +#### CentOS/RHEL/AlmaLinux/Rocky Linux * `centos_fastestmirror_enabled: false` Whether the [fastestmirror](https://wiki.centos.org/PackageManagement/Yum/FastestMirror) yum plugin should be enabled. diff --git a/docs/centos8.md b/docs/centos8.md index 32afb22f96f..c72fa7178e6 100644 --- a/docs/centos8.md +++ b/docs/centos8.md @@ -1,6 +1,6 @@ # CentOS 8 and derivatives -CentOS 8 / Oracle Linux 8 / AlmaLinux 8 ship only with iptables-nft (ie without iptables-legacy similar to RHEL8) +CentOS 8 / Oracle Linux 8 / AlmaLinux 8 / Rocky Linux 8 ship only with iptables-nft (ie without iptables-legacy similar to RHEL8) The only tested configuration for now is using Calico CNI You need to add `calico_iptables_backend: "NFT"` or `calico_iptables_backend: "Auto"` to your configuration. diff --git a/docs/offline-environment.md b/docs/offline-environment.md index 5e86b56675b..09e92eaf6d0 100644 --- a/docs/offline-environment.md +++ b/docs/offline-environment.md @@ -31,7 +31,7 @@ calicoctl_download_url: "{{ files_repo }}/kubernetes/calico/{{ calico_ctl_versio # If using Calico with kdd calico_crds_download_url: "{{ files_repo }}/kubernetes/calico/{{ calico_version }}.tar.gz" -# CentOS/Redhat/AlmaLinux +# CentOS/Redhat/AlmaLinux/Rocky Linux ## Docker / Containerd docker_rh_repo_base_url: "{{ yum_repo }}/docker-ce/$releasever/$basearch" docker_rh_repo_gpgkey: "{{ yum_repo }}/docker-ce/gpg" From bd4128810ef623036b3a1c1ae006dfd392f09520 Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Tue, 19 Oct 2021 06:09:53 +0300 Subject: [PATCH 4/5] Rocky Linux wireguard and EPEL --- docs/calico.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/calico.md b/docs/calico.md index c1fa53d026f..be63d2ce4d1 100644 --- a/docs/calico.md +++ b/docs/calico.md @@ -369,6 +369,7 @@ The following OSes will require enabling the EPEL repo in order to bring in wire * CentOS 7 & 8 * AlmaLinux 8 +* Rocky Linux 8 * Amazon Linux 2 ```yaml From 2e41ef81f2718e148d646b3094e577380919a65f Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Tue, 19 Oct 2021 06:10:01 +0300 Subject: [PATCH 5/5] Rocky Linux in the list of supported distributions --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b7402c740ef..92cce7fe63a 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ vagrant up - **openSUSE** Leap 15.x/Tumbleweed - **Oracle Linux** 7, [8](docs/centos8.md) - **Alma Linux** [8](docs/centos8.md) +- **Rocky Linux** [8](docs/centos8.md) - **Amazon Linux 2** (experimental: see [amazon linux notes](docs/amazonlinux.md)) Note: Upstart/SysV init based OS types are not supported.