]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: configure epel repository (rockylinux)
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 19 Mar 2024 17:36:21 +0000 (18:36 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 2 Sep 2024 08:05:06 +0000 (10:05 +0200)
this is needed in order to make some libraries available when
running on RockyLinux

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 867be7c35c1f10080f842c3c6bdd51062cfd788a)

roles/ceph-common/tasks/installs/configure_redhat_repository_installation.yml
tox.ini

index a36355a1bb12cbf0e22cf69b9d6363505182dab4..a2a8d48f49e89e3c882a6e28563fef809c363aac 100644 (file)
@@ -1,6 +1,15 @@
 ---
-- name: include redhat_community_repository.yml
-  include_tasks: redhat_community_repository.yml
+- name: Configure epel repository
+  ansible.builtin.package:
+    name: epel-release
+  register: result
+  until: result is succeeded
+  tags: with_pkg
+  when:
+    - ansible_facts['distribution'] == 'Rocky'
+
+- name: Include redhat_community_repository.yml
+  ansible.builtin.include_tasks: redhat_community_repository.yml
   when: ceph_repository == 'community'
 
 - name: include redhat_rhcs_repository.yml
diff --git a/tox.ini b/tox.ini
index e399ed2afdd96206654712c457bc0739ee41ab9e..d4f821fda85afb78edbcb2b3543416dfe157ac64 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = centos-{container,non_container}-{all_daemons,all_daemons_ipv6,collocation,lvm_osds,shrink_mon,shrink_mgr,shrink_mds,shrink_rbdmirror,shrink_rgw,lvm_batch,add_mons,add_mgrs,add_mdss,add_rbdmirrors,add_rgws,rgw_multisite,purge,storage_inventory,lvm_auto_discovery,all_in_one,cephadm_adopt,purge_dashboard}
+envlist = {centos,rocky}-{container,non_container}-{all_daemons,all_daemons_ipv6,collocation,lvm_osds,shrink_mon,shrink_mgr,shrink_mds,shrink_rbdmirror,shrink_rgw,lvm_batch,add_mons,add_mgrs,add_mdss,add_rbdmirrors,add_rgws,rgw_multisite,purge,storage_inventory,lvm_auto_discovery,all_in_one,cephadm_adopt,purge_dashboard}
   centos-non_container-{switch_to_containers}
   infra_lv_create
   migrate_ceph_disk_to_ceph_volume