Skip to content

Commit

Permalink
Merge pull request #286 from ceph/mergify/bp/reef/pr-285
Browse files Browse the repository at this point in the history
preflight: remove rhcs6 repos before installing rhcs7 (backport #285)
  • Loading branch information
asm0deuz authored Apr 5, 2024
2 parents 775303b + 81f2054 commit 707aaf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
- rhceph-4-osd-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms
repos_5_to_disable:
- rhceph-5-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms
repos_6_to_disable:
- rhceph-6-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms
packages_to_uninstall:
- ceph-mds
- ceph-mgr
Expand Down Expand Up @@ -62,7 +64,7 @@
- name: disable older rhceph repositories if any on RHEL{{ansible_facts['distribution_major_version']}}
when: ansible_facts['distribution_major_version'] == '9'
rhsm_repository:
name: "{{ repos_5_to_disable }}"
name: "{{ repos_5_to_disable + repos_6_to_disable }}"
state: absent

- name: enable ceph package repositories
Expand Down

0 comments on commit 707aaf0

Please sign in to comment.