ceph-ansible/roles/ceph-common/tasks/install_on_redhat.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2014-09-05 03:14:11 +08:00
---
- name: Install dependencies
yum: >
name={{ item }}
2014-09-05 03:14:11 +08:00
state=present
with_items:
- python-pycurl
- ntp
- hdparm
- yum-plugin-priorities.noarch
2014-09-05 03:14:11 +08:00
- name: Install the Ceph stable repository key
rpm_key: >
key={{ ceph_stable_key }}
2014-09-05 03:14:11 +08:00
state=present
when: ceph_stable
- name: Install the Ceph development repository key
2014-09-05 03:14:11 +08:00
rpm_key: >
key={{ ceph_dev_key }}
2014-09-05 03:14:11 +08:00
state=present
when: ceph_dev
- name: Install Inktank Ceph Enterprise repository key
rpm_key: >
key={{ ceph_stable_ice_temp_path }}/release.asc
state=present
when: ceph_stable_ice
2014-09-05 03:14:11 +08:00
- name: Add Ceph stable repository
command: "rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/ceph.repo"
2014-09-05 03:14:11 +08:00
when: ceph_stable
- name: Add Ceph development repository
command: "rpm -U 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 creates=/etc/yum.repos.d/ceph.repo"
when: ceph_dev
- name: Add Inktank Ceph Enterprise repository
template: >
src=redhat_ice_repo.j2
dest=/etc/yum.repos.d/ice.repo
owner=root
group=root
mode=0644
when: ceph_stable_ice
2014-09-05 03:14:11 +08:00
- name: Install Ceph
yum: >
name=ceph
2014-09-05 03:14:11 +08:00
state=latest
- name: Install Inktank Ceph Enterprise RBD Kernel modules
yum: >
name={{ item }}
with_items:
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
when: ceph_stable_ice