]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: adds crush_device_class config option
authorAndrew Schoen <aschoen@redhat.com>
Mon, 6 Aug 2018 20:14:53 +0000 (15:14 -0500)
committerAlfredo Deza <alfredo@deza.pe>
Thu, 9 Aug 2018 13:41:58 +0000 (09:41 -0400)
This is used with the lvm osd scenario. When using devices you need the
option to set the crush device class for all of the OSDs that are
created from those devices.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-osd/defaults/main.yml
roles/ceph-osd/tasks/scenarios/lvm-batch.yml

index c33d5447f3046985a3f59ffecf0d2375397e8efe..a8e702c48033accb6b2a060656a274a677f607b6 100644 (file)
@@ -217,6 +217,7 @@ bluestore_wal_devices: "{{ dedicated_devices }}"
 #   - data: /dev/sdb1
 
 lvm_volumes: []
+crush_device_class: ""
 
 
 ##########
index 4381eece2abde26991f9a6382051cc19223cc0c6..fcee4f9d2c52b04995fcf0f47f0e1837fd2ad2d9 100644 (file)
@@ -6,6 +6,7 @@
     objectstore: "{{ osd_objectstore }}"
     batch_devices: "{{ devices }}"
     dmcrypt: "{{ dmcrypt|default(omit) }}"
+    crush_device_class: "{{ crush_device_class|default(omit) }}"
     action: "batch"
   environment:
     CEPH_VOLUME_DEBUG: 1