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
|
|
|
apt: >
|
|
|
|
pkg={{ item }}
|
|
|
|
state=present
|
|
|
|
update_cache=yes
|
2014-09-05 03:14:11 +08:00
|
|
|
cache_valid_time=3600
|
2015-08-26 17:19:35 +08:00
|
|
|
with_items: debian_package_dependencies
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-08-27 17:17:11 +08:00
|
|
|
- name: configure Ceph APT repository
|
|
|
|
include: debian_ceph_repository.yml
|
|
|
|
when: ceph_origin == 'upstream'
|
2014-12-18 01:01:44 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: install ceph
|
2014-09-05 03:14:11 +08:00
|
|
|
apt: >
|
|
|
|
pkg={{ item }}
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-08-27 17:17:11 +08:00
|
|
|
default_release={{ ansible_distribution_release }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}
|
2014-09-05 03:14:11 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-common #|
|
|
|
|
- ceph-fs-common #|--> yes, they are already all dependencies from 'ceph'
|
|
|
|
- ceph-fuse #|--> however while proceding to rolling upgrades and the 'ceph' package upgrade
|
|
|
|
- ceph-mds #|--> they don't get update so we need to force them
|
|
|
|
- libcephfs1 #|
|
2015-06-09 22:32:17 +08:00
|
|
|
|
2015-08-03 23:39:57 +08:00
|
|
|
- name: install rados gateway
|
|
|
|
apt: >
|
|
|
|
pkg=radosgw
|
2015-08-17 17:28:20 +08:00
|
|
|
state=latest
|
2015-08-03 23:39:57 +08:00
|
|
|
update_cache=yes
|
|
|
|
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=libvirt-qemu
|
|
|
|
group=kvm
|
|
|
|
mode=0755
|
|
|
|
with_items:
|
|
|
|
- rbd_client_log_path
|
|
|
|
- rbd_client_admin_socket_path
|
|
|
|
when: rbd_client_directories
|