From f741ee74029d17c95a6af04f232eaaa013228581 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 8 Dec 2016 14:22:29 -0500 Subject: [PATCH] ceph-common: fetch ceph_dev repo contents for debian from shaman Signed-off-by: Alfredo Deza --- .../tasks/installs/debian_ceph_repository.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/installs/debian_ceph_repository.yml b/roles/ceph-common/tasks/installs/debian_ceph_repository.yml index 1fd285358..00bedaafb 100644 --- a/roles/ceph-common/tasks/installs/debian_ceph_repository.yml +++ b/roles/ceph-common/tasks/installs/debian_ceph_repository.yml @@ -18,9 +18,17 @@ changed_when: false when: ceph_stable +# we must use curl instead of ansible's uri module because SNI support in +# Python is only available in 2.7.9 and later, and most supported distributions +# don't have that version, so a request to https fails. +- name : fetch ceph development repository sources list file + command: "curl -L https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_lsb.codename }}/repo" + register: ceph_dev_deb_repo + when: ceph_dev + - name: add ceph development repository apt_repository: - repo: "deb http://gitbuilder.ceph.com/ceph-deb-{{ ansible_lsb.codename }}-x86_64-basic/ref/{{ ceph_dev_branch }} {{ ansible_lsb.codename }} main" + repo: "{{ ceph_dev_deb_repo.stdout }}" state: present changed_when: false when: ceph_dev -- 2.39.5