]> 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>
Wed, 20 Mar 2024 12:42:52 +0000 (13:42 +0100)
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 37938bc7e47c93202a1fe28361ec55c2a71996e2..7ad607f52581657975c7e0ad54f089fa1703c629 100644 (file)
@@ -1,4 +1,13 @@
 ---
+- 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'
diff --git a/tox.ini b/tox.ini
index 82dd93a54930886a86192c642eb78b93bb085e28..ee50d47fec3bd670c613afbbbaa80ac32a256d79 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = {centos,ubuntu}-{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,purge,storage_inventory,lvm_auto_discovery,all_in_one,cephadm_adopt,purge_dashboard}
+envlist = {centos,ubuntu,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,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
@@ -265,6 +265,7 @@ setenv=
   # Set the vagrant box image to use
   ubuntu: CEPH_ANSIBLE_VAGRANT_BOX = generic/ubuntu2204
   centos: CEPH_ANSIBLE_VAGRANT_BOX = centos/stream9
+  rocky: CEPH_ANSIBLE_VAGRANT_BOX = rockylinux/9
   INVENTORY = {env:_INVENTORY:hosts}
   container: CONTAINER_DIR = /container
   container: PLAYBOOK = site-container.yml.sample