ceph-ansible/roles/ceph-validate/tasks/main.yml

41 lines
1.3 KiB
YAML
Raw Normal View History

---
- name: validate provided configuration
validate:
mode: permissive
- name: make sure pg num is set for cephfs pools
fail:
msg: "You must set pg num for your cephfs pools, see the cephfs_pools variable."
with_items: "{{ cephfs_pools }}"
when:
- groups.get(mds_group_name, []) | length > 0
- item.pgs == ''
- name: make sure journal_size configured
debug:
msg: "WARNING: journal_size is configured to {{ journal_size }}, which is less than 5GB. This is not recommended and can lead to severe issues."
when:
- journal_size|int < 5120
- osd_objectstore == 'filestore'
- osd_group_name in group_names
- name: check if osd_scenario lvm is supported by the selected ceph version
fail:
msg: "osd_scenario lvm is not supported by the selected Ceph version, use Luminous or newer."
when:
- osd_group_name is defined
- osd_group_name in group_names
- not containerized_deployment
- osd_scenario == "lvm"
- ceph_release_num[ceph_release] < ceph_release_num.luminous
- name: check if bluestore is supported by the selected ceph version
fail:
msg: "bluestore is not supported by the selected Ceph version, use Luminous or above."
when:
- osd_group_name is defined
- osd_group_name in group_names
- osd_objectstore == 'bluestore'
- ceph_release_num[ceph_release] < ceph_release_num.luminous