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

30 lines
906 B
YAML

---
- name: Fail if ec_profile is not set for ec pools
ansible.builtin.fail:
msg: "ec_profile must be set for ec pools"
loop: "{{ rgw_create_pools | dict2items }}"
when:
- item.value.type is defined
- item.value.type == 'ec'
- item.value.ec_profile is undefined
- name: Fail if ec_k is not set for ec pools
ansible.builtin.fail:
msg: "ec_k must be set for ec pools"
loop: "{{ rgw_create_pools | dict2items }}"
when:
- item.value.type is defined
- item.value.type == 'ec'
- item.value.create_profile | default(true)
- item.value.ec_k is undefined
- name: Fail if ec_m is not set for ec pools
ansible.builtin.fail:
msg: "ec_m must be set for ec pools"
loop: "{{ rgw_create_pools | dict2items }}"
when:
- item.value.type is defined
- item.value.type == 'ec'
- item.value.create_profile | default(true)
- item.value.ec_m is undefined