2015-08-31 21:23:29 +08:00
|
|
|
---
|
|
|
|
- name: install the ceph stable repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
rpm_key:
|
|
|
|
key: "{{ ceph_stable_key }}"
|
|
|
|
state: present
|
2015-08-31 21:23:29 +08:00
|
|
|
when: ceph_stable
|
|
|
|
|
|
|
|
- name: install the ceph development repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
rpm_key:
|
|
|
|
key: "{{ ceph_dev_key }}"
|
|
|
|
state: present
|
2015-08-31 21:23:29 +08:00
|
|
|
when: ceph_dev
|
|
|
|
|
|
|
|
- name: install inktank ceph enterprise repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
rpm_key:
|
|
|
|
key: "{{ ceph_stable_ice_temp_path }}/release.asc"
|
|
|
|
state: present
|
2015-08-31 21:23:29 +08:00
|
|
|
when: ceph_stable_ice
|
|
|
|
|
|
|
|
- name: install red hat storage repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
rpm_key:
|
|
|
|
key: "{{ ceph_stable_rh_storage_repository_path }}/RPM-GPG-KEY-redhat-release"
|
|
|
|
state: present
|
2015-08-31 21:23:29 +08:00
|
|
|
when:
|
|
|
|
ceph_stable_rh_storage and
|
|
|
|
ceph_stable_rh_storage_iso_install
|
|
|
|
|
|
|
|
- name: add ceph stable repository
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
|
2015-08-31 21:23:29 +08:00
|
|
|
changed_when: false
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ceph_stable and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: add ceph stable repository
|
|
|
|
dnf:
|
|
|
|
name: http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
|
|
|
|
changed_when: false
|
|
|
|
when:
|
|
|
|
ceph_stable and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-08-31 21:23:29 +08:00
|
|
|
|
|
|
|
- name: add ceph development repository
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
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
|
2015-08-31 21:23:29 +08:00
|
|
|
changed_when: false
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ceph_dev and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: add ceph development repository
|
|
|
|
dnf:
|
|
|
|
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
|
|
|
|
changed_when: false
|
|
|
|
when:
|
|
|
|
ceph_dev and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-08-31 21:23:29 +08:00
|
|
|
|
2016-01-29 08:15:32 +08:00
|
|
|
- name: add inktank ceph enterprise repository
|
2015-09-04 00:18:53 +08:00
|
|
|
template:
|
|
|
|
src: redhat_ice_repo.j2
|
|
|
|
dest: /etc/yum.repos.d/ice.repo
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2015-08-31 21:23:29 +08:00
|
|
|
when: ceph_stable_ice
|
|
|
|
|
|
|
|
- name: add red hat storage repository
|
2015-09-04 00:18:53 +08:00
|
|
|
template:
|
2016-01-16 01:52:31 +08:00
|
|
|
src: ../../templates/redhat_storage_repo.j2
|
2015-09-04 00:18:53 +08:00
|
|
|
dest: /etc/yum.repos.d/rh_storage.repo
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2015-08-31 21:23:29 +08:00
|
|
|
when:
|
|
|
|
ceph_stable_rh_storage and
|
|
|
|
ceph_stable_rh_storage_iso_install
|