Skip to content

Commit

Permalink
Make sure the repo url contains the correct arch
Browse files Browse the repository at this point in the history
We can end up with an arm only repo unless we are specific about the
architecture we require. Brings the deb code in line with the rpm
equivalent.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 267cce9)
  • Loading branch information
badone authored and guits committed May 17, 2021
1 parent 6999118 commit 5d3a46e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion roles/ceph-common/tasks/installs/debian_dev_repository.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
---
- name: get latest available build
uri:
url: "https://shaman.ceph.com/api/search/?status=ready&project=ceph&flavor=default&distros={{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/{{ ansible_facts['architecture'] }}&ref={{ ceph_dev_branch }}&sha1={{ ceph_dev_sha1 }}"
return_content: yes
run_once: true
register: latest_build

- name: fetch ceph debian development repository
uri:
url: https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_release'] }}/repo
url: "{{ (latest_build.content | from_json)[0]['chacra_url'] }}repo"
return_content: yes
register: ceph_dev_deb_repo

Expand Down

0 comments on commit 5d3a46e

Please sign in to comment.