Skip to content

Commit

Permalink
Merge pull request #215 from ceph/mergify/bp/pacific/pr-211
Browse files Browse the repository at this point in the history
cephadm-preflight: only use $basearch for IBM yum repo (backport #211)
  • Loading branch information
andrewschoen authored Feb 21, 2023
2 parents 086064e + b2ecd92 commit d3b87c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
description: "{{ 'Ceph Stable repo' if ceph_origin == 'community' else 'IBM Ceph repo' }}"
rpm_key: "{{ ceph_stable_key if ceph_origin == 'community' else ceph_ibm_key }}"
baseurl: "{{ ceph_community_repo_baseurl if ceph_origin == 'community' else ceph_ibm_repo_baseurl }}"
paths: "{{ [ 'noarch', '$basearch' ] if ceph_origin == 'community' else [ '$basearch' ] }}"

- name: configure ceph repository key
rpm_key:
Expand All @@ -80,9 +81,7 @@
priority: '2'
register: result
until: result is succeeded
loop:
- "$basearch"
- "noarch"
loop: "{{ _ceph_repo.paths }}"

- name: enable repo from shaman - dev
when: ceph_origin == 'shaman'
Expand Down

0 comments on commit d3b87c4

Please sign in to comment.