2014-09-05 03:14:11 +08:00
|
|
|
---
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install dependencies
|
2014-11-06 00:57:28 +08:00
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
2014-09-05 03:14:11 +08:00
|
|
|
state=present
|
|
|
|
with_items:
|
|
|
|
- python-pycurl
|
|
|
|
- ntp
|
|
|
|
- hdparm
|
2015-01-13 22:46:47 +08:00
|
|
|
- yum-plugin-priorities.noarch
|
2015-01-22 21:35:20 +08:00
|
|
|
- epel-release
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install the Ceph stable repository key
|
2014-09-05 03:14:11 +08:00
|
|
|
rpm_key: >
|
2014-11-11 23:10:32 +08:00
|
|
|
key={{ ceph_stable_key }}
|
2014-09-05 03:14:11 +08:00
|
|
|
state=present
|
|
|
|
when: ceph_stable
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install the Ceph development repository key
|
2014-09-05 03:14:11 +08:00
|
|
|
rpm_key: >
|
2014-11-11 23:10:32 +08:00
|
|
|
key={{ ceph_dev_key }}
|
2014-09-05 03:14:11 +08:00
|
|
|
state=present
|
|
|
|
when: ceph_dev
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install Inktank Ceph Enterprise repository key
|
2014-12-18 01:01:44 +08:00
|
|
|
rpm_key: >
|
2015-01-07 18:25:34 +08:00
|
|
|
key={{ ceph_stable_ice_temp_path }}/release.asc
|
2014-12-18 01:01:44 +08:00
|
|
|
state=present
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add Ceph stable repository
|
2015-04-16 15:09:55 +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
|
|
|
|
register: repo_result
|
2014-09-05 03:14:11 +08:00
|
|
|
when: ceph_stable
|
2015-04-16 15:09:55 +08:00
|
|
|
failed_when: repo_result.rc > 1
|
|
|
|
changed_when: repo_result.rc == 0
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add Ceph development repository
|
2015-04-16 15:09:55 +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
|
|
|
|
register: repo_result
|
2014-09-05 03:14:11 +08:00
|
|
|
when: ceph_dev
|
2015-04-16 15:09:55 +08:00
|
|
|
failed_when: repo_result.rc > 1
|
|
|
|
changed_when: repo_result.rc == 0
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add Inktank Ceph Enterprise repository
|
2014-12-16 20:46:32 +08:00
|
|
|
template: >
|
2014-12-18 01:01:44 +08:00
|
|
|
src=redhat_ice_repo.j2
|
2014-12-16 20:46:32 +08:00
|
|
|
dest=/etc/yum.repos.d/ice.repo
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0644
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install Ceph
|
2014-11-06 00:57:28 +08:00
|
|
|
yum: >
|
|
|
|
name=ceph
|
2014-09-05 03:14:11 +08:00
|
|
|
state=latest
|
2014-12-18 19:20:17 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install Inktank Ceph Enterprise RBD Kernel modules
|
2014-12-18 19:20:17 +08:00
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
|
|
|
with_items:
|
2014-12-25 00:07:50 +08:00
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
|
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
|
2014-12-18 19:20:17 +08:00
|
|
|
when: ceph_stable_ice
|