]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make sure the repo url contains the correct arch
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 19 Mar 2021 04:11:42 +0000 (14:11 +1000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 22 Mar 2021 08:39:48 +0000 (09:39 +0100)
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>
roles/ceph-common/tasks/installs/debian_dev_repository.yml

index c5c8c5c3a859daee1650efa36828d22325a11498..ca2136fee060b08b65d38a69e532ba473c376f5c 100644 (file)
@@ -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