mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: fetch ceph_dev repo contents for CentOS from shaman
Signed-off-by: Alfredo Deza <adeza@redhat.com>pull/1169/head
parent
4e2948bce3
commit
deb96d7b04
|
@ -5,12 +5,6 @@
|
|||
state: present
|
||||
when: ceph_stable
|
||||
|
||||
- name: install the ceph development repository key
|
||||
rpm_key:
|
||||
key: "{{ ceph_dev_key }}"
|
||||
state: present
|
||||
when: ceph_dev
|
||||
|
||||
- name: add ceph stable repository
|
||||
package:
|
||||
name: http://download.ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
|
||||
|
@ -18,11 +12,21 @@
|
|||
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 repo file
|
||||
command: 'curl -L https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/repo'
|
||||
register: ceph_dev_yum_repo
|
||||
when: ceph_dev
|
||||
|
||||
- name: add ceph development repository
|
||||
package:
|
||||
name: http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm
|
||||
state: present
|
||||
changed_when: false
|
||||
copy:
|
||||
content: "{{ ceph_dev_yum_repo.stdout }}"
|
||||
dest: /etc/yum.repos.d/ceph-dev.repo
|
||||
owner: root
|
||||
group: root
|
||||
backup: yes
|
||||
when: ceph_dev
|
||||
|
||||
- name: add custom repo
|
||||
|
|
Loading…
Reference in New Issue