From: Benoît Knecht Date: Tue, 26 Oct 2021 14:00:05 +0000 (+0200) Subject: roles/ceph-rgw: Support CRUSH device class X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b29a6b18f8aaffe1d0dc2d1843df754879b0a435;p=ceph-ansible.git roles/ceph-rgw: Support CRUSH device class The pools created by `ceph-rgw` (listed in `rgw_create_pools`) now support a `ec_crush_device_class` option to specify which device class the EC pool should use. It default to being omitted, which means it will use OSDs from any device class by default. Signed-off-by: Benoît Knecht --- diff --git a/roles/ceph-rgw/tasks/rgw_create_pools.yml b/roles/ceph-rgw/tasks/rgw_create_pools.yml index 0907a9df1..bbdac1b4c 100644 --- a/roles/ceph-rgw/tasks/rgw_create_pools.yml +++ b/roles/ceph-rgw/tasks/rgw_create_pools.yml @@ -5,6 +5,7 @@ cluster: "{{ cluster }}" k: "{{ item.value.ec_k }}" m: "{{ item.value.ec_m }}" + crush_device_class: "{{ item.value.ec_crush_device_class | default(omit) }}" delegate_to: "{{ groups[mon_group_name][0] }}" loop: "{{ rgw_create_pools | dict2items }}" when: