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
|
2015-08-26 17:19:35 +08:00
|
|
|
with_items: redhat_package_dependencies
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-08-31 21:23:29 +08:00
|
|
|
- name: configure ceph yum repository
|
|
|
|
include: redhat_ceph_repository.yml
|
|
|
|
when: ceph_origin == 'upstream'
|
2015-07-02 17:08:59 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: install ceph
|
2014-11-06 00:57:28 +08:00
|
|
|
yum: >
|
|
|
|
name=ceph
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-07-01 21:58:38 +08:00
|
|
|
when: not ceph_stable_rh_storage
|
|
|
|
|
|
|
|
- name: install red hat storage ceph mon
|
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-07-01 21:58:38 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-mon
|
|
|
|
when:
|
|
|
|
ceph_stable_rh_storage and
|
|
|
|
mon_group_name in group_names
|
|
|
|
|
|
|
|
- name: install red hat storage ceph osd
|
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-07-01 21:58:38 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-osd
|
|
|
|
when:
|
|
|
|
ceph_stable_rh_storage and
|
|
|
|
osd_group_name in group_names
|
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
|
2015-06-09 22:32:17 +08:00
|
|
|
|
2015-08-03 23:39:57 +08:00
|
|
|
- name: install rados gateway
|
|
|
|
yum: >
|
|
|
|
name=ceph-radosgw
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-08-03 23:39:57 +08:00
|
|
|
when:
|
|
|
|
rgw_group_name in group_names
|
|
|
|
|
2015-06-09 22:32:17 +08:00
|
|
|
- name: configure rbd clients directories
|
|
|
|
file: >
|
|
|
|
path={{ item }}
|
|
|
|
state=directory
|
|
|
|
owner=qemu
|
|
|
|
group=libvirtd
|
|
|
|
mode=0755
|
|
|
|
with_items:
|
|
|
|
- rbd_client_log_path
|
|
|
|
- rbd_client_admin_socket_path
|
|
|
|
when: rbd_client_directories
|