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:
|
2016-10-04 22:04:15 +08:00
|
|
|
name: "{{ item }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 3600
|
2016-11-03 17:16:33 +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
|
|
|
|
2017-01-31 07:15:08 +08:00
|
|
|
- name: update apt cache
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: install ceph
|
2015-09-04 00:18:53 +08:00
|
|
|
apt:
|
2017-04-28 23:47:27 +08:00
|
|
|
name: "ceph"
|
2017-01-31 07:15:08 +08:00
|
|
|
update_cache: no
|
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 ''}}"
|
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
|
2016-05-09 22:08:33 +08:00
|
|
|
when: rgw_group_name in group_names
|
2015-08-03 23:39:57 +08:00
|
|
|
|
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-05-09 22:08:33 +08:00
|
|
|
when: mds_group_name in group_names
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2016-10-05 21:07:25 +08:00
|
|
|
- name: install jemalloc
|
2016-05-06 02:20:03 +08:00
|
|
|
apt:
|
2016-10-05 21:07:25 +08:00
|
|
|
pkg: libjemalloc1
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
update_cache: yes
|
|
|
|
when: nfs_group_name in group_names
|
|
|
|
|
2016-11-27 03:39:12 +08:00
|
|
|
- name: install NFS gateway
|
2016-10-05 21:07:25 +08:00
|
|
|
apt:
|
2017-03-13 23:34:35 +08:00
|
|
|
pkg: nfs-ganesha-fsal
|
2016-05-06 02:20:03 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
update_cache: yes
|
|
|
|
when: nfs_group_name in group_names
|
2017-03-16 17:17:08 +08:00
|
|
|
|
|
|
|
- name: install ceph mgr
|
|
|
|
apt:
|
|
|
|
pkg: ceph-mgr
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-05-04 17:14:58 +08:00
|
|
|
when:
|
|
|
|
- mgr_group_name in group_names
|
|
|
|
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
|