Skip to content

Commit d125db1

Browse files
authored
Add support for --crush-device-class in ceph OSD creation
1 parent 3130c4a commit d125db1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)