Skip to content

Commit f77d5ab

Browse files
authored
Merge pull request #298 from simoncaron/develop
Add support for --crush-device-class in ceph OSD creation
2 parents 3130c4a + bd086a8 commit f77d5ab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,9 @@ pve_ceph_osds:
738738
- device: /dev/sdd
739739
block.db: /dev/sdb1
740740
encrypted: true
741+
# NVME OSD
742+
- device: /dev/nvme0n1
743+
crush.device.class: NVMe
741744
# Crush rules for different storage classes
742745
# By default 'type' is set to host, you can find valid types at
743746
# (https://docs.ceph.com/en/latest/rados/operations/crush-map/)

tasks/ceph.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- name: Create Ceph OSDs
5656
ansible.builtin.command: >-
5757
pveceph osd create {{ item.device }}
58+
{% if "crush.device.class" in item %}--crush-device-class {{ item["crush.device.class"] }}{% endif %}
5859
{% if "encrypted" in item and item["encrypted"] | bool %}--encrypted 1{% endif %}
5960
{% if "block.db" in item %}--db_dev {{ item["block.db"] }}{% endif %}
6061
{% if "block.wal" in item %}--wal_dev {{ item["block.wal"] }}{% endif %}

0 commit comments

Comments
 (0)