ceph-common: fetch ceph_dev repo contents for debian from shaman

Signed-off-by: Alfredo Deza <adeza@redhat.com>
pull/1169/head
Alfredo Deza 2016-12-08 14:22:29 -05:00
parent 7b0602c224
commit f741ee7402
1 changed files with 9 additions and 1 deletions

View File

@ -18,9 +18,17 @@
changed_when: false changed_when: false
when: ceph_stable 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 - name: add ceph development repository
apt_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 state: present
changed_when: false changed_when: false
when: ceph_dev when: ceph_dev