2017-08-03 21:30:25 +08:00
|
|
|
---
|
|
|
|
- name: install ceph for debian
|
|
|
|
apt:
|
|
|
|
name: "ceph"
|
|
|
|
update_cache: no
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-08 00:50:57 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: install ceph-common for debian
|
|
|
|
apt:
|
|
|
|
name: ceph-common
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-08 00:50:57 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: install ceph-test for debian
|
|
|
|
apt:
|
|
|
|
name: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-08 00:50:57 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-08-03 21:30:25 +08:00
|
|
|
when:
|
|
|
|
- ceph_test
|
|
|
|
|
|
|
|
- name: install rados gateway for debian
|
|
|
|
apt:
|
|
|
|
name: radosgw
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
update_cache: yes
|
|
|
|
when:
|
|
|
|
- rgw_group_name in group_names
|
|
|
|
|
|
|
|
- name: install ceph mds for debian
|
|
|
|
apt:
|
|
|
|
name: ceph-mds
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-08 00:50:57 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-08-03 21:30:25 +08:00
|
|
|
when:
|
|
|
|
- mds_group_name in group_names
|
|
|
|
|
|
|
|
- name: install jemalloc for debian
|
|
|
|
apt:
|
|
|
|
name: libjemalloc1
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
update_cache: yes
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
|
2017-08-21 20:38:21 +08:00
|
|
|
- name: install nfs cephfs gateway
|
|
|
|
package:
|
|
|
|
name: nfs-ganesha-ceph
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
- nfs_file_gw
|
|
|
|
|
|
|
|
- name: install nfs rgw gateway
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- nfs-ganesha-rgw
|
|
|
|
- radosgw
|
2017-08-03 21:30:25 +08:00
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
2017-08-21 20:38:21 +08:00
|
|
|
- nfs_obj_gw
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: install ceph mgr for debian
|
|
|
|
apt:
|
|
|
|
name: ceph-mgr
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-08 00:50:57 +08:00
|
|
|
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
2017-08-03 21:30:25 +08:00
|
|
|
when:
|
|
|
|
- mgr_group_name in group_names
|
|
|
|
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
|