2014-09-05 03:14:11 +08:00
|
|
|
---
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install dependencies
|
2015-09-04 00:18:53 +08:00
|
|
|
apt:
|
|
|
|
pkg: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
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-31 20:23:20 +08:00
|
|
|
- name: configure ceph apt repository
|
2015-08-27 17:17:11 +08:00
|
|
|
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
|
2015-09-04 00:18:53 +08:00
|
|
|
apt:
|
|
|
|
pkg: "{{ item }}"
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-05-03 00:25:52 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(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
|
2016-03-09 02:08:24 +08:00
|
|
|
- libcephfs1 #|--> they don't get update so we need to force them
|
2015-06-09 22:32:17 +08:00
|
|
|
|
2016-02-20 07:39:33 +08:00
|
|
|
- name: install ceph-test
|
|
|
|
apt:
|
|
|
|
pkg: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-05-03 00:25:52 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2016-02-20 07:39:33 +08:00
|
|
|
when: ceph_test
|
|
|
|
|
2015-08-03 23:39:57 +08:00
|
|
|
- name: install rados gateway
|
2015-09-04 00:18:53 +08:00
|
|
|
apt:
|
|
|
|
pkg: radosgw
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
update_cache: yes
|
2015-08-03 23:39:57 +08:00
|
|
|
when:
|
|
|
|
rgw_group_name in group_names
|
|
|
|
|
2016-03-09 02:08:24 +08:00
|
|
|
- name: install ceph mds
|
|
|
|
apt:
|
|
|
|
pkg: ceph-mds
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-05-03 00:25:52 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2016-03-09 02:08:24 +08:00
|
|
|
when:
|
|
|
|
mds_group_name in group_names
|