From 2bfbb2bb25c7175768773b337833f1c27b9c46de Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 11 Jun 2024 16:26:57 +0530 Subject: [PATCH] hosts.update: Reconfigure CentOS 8 repositories to vault CentOS Stream 8 reached EOL but our GPFS and GlusterFS environment setup still has some dependencies which are not yet fulfilled by CentOS Stream 9. In case of GlusterFS it lacks few gluster-ansible related rpms whereas GPFS is not yet ready to be compiled against newer kernel versions from CentOS Stream 9. Therefore we stick to CentOS Stream 8 till requirements are met. See https://github.com/samba-in-kubernetes/sit-environment/issues/102 for further developments. Signed-off-by: Anoop C S --- .../hosts.update/tasks/{redhat.yml => centos.yml} | 0 playbooks/roles/hosts.update/tasks/centos8.yml | 10 ++++++++++ playbooks/roles/hosts.update/tasks/centos9.yml | 3 +++ 3 files changed, 13 insertions(+) rename playbooks/roles/hosts.update/tasks/{redhat.yml => centos.yml} (100%) create mode 100644 playbooks/roles/hosts.update/tasks/centos8.yml create mode 100644 playbooks/roles/hosts.update/tasks/centos9.yml diff --git a/playbooks/roles/hosts.update/tasks/redhat.yml b/playbooks/roles/hosts.update/tasks/centos.yml similarity index 100% rename from playbooks/roles/hosts.update/tasks/redhat.yml rename to playbooks/roles/hosts.update/tasks/centos.yml diff --git a/playbooks/roles/hosts.update/tasks/centos8.yml b/playbooks/roles/hosts.update/tasks/centos8.yml new file mode 100644 index 00000000..358c5333 --- /dev/null +++ b/playbooks/roles/hosts.update/tasks/centos8.yml @@ -0,0 +1,10 @@ +--- +# https://github.com/samba-in-kubernetes/sit-environment/issues/102 +- name: Modify repositories to point at CentOS vault + shell: >- + find /etc/yum.repos.d/ -name '*.repo' -exec sed -i \ + -e 's|^mirrorlist=|#mirrorlist=|g' \ + -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' {} \; + +- name: Process common OS tasks + include_tasks: centos.yml diff --git a/playbooks/roles/hosts.update/tasks/centos9.yml b/playbooks/roles/hosts.update/tasks/centos9.yml new file mode 100644 index 00000000..64498162 --- /dev/null +++ b/playbooks/roles/hosts.update/tasks/centos9.yml @@ -0,0 +1,3 @@ +--- +- name: Process common OS tasks + include_tasks: centos.yml