mirror of https://github.com/ceph/ceph-ansible.git
Add support for using loopback devices as OSDs
This is particularly useful in CI environments where you dont have the option of adding extra devices or volumes to the host. It is also a simple change to support loopback devicespull/2215/head
parent
3c6f2854fe
commit
8f02bb007f
|
@ -3,7 +3,7 @@
|
|||
# partition.
|
||||
|
||||
- name: activate osd(s) when device is a disk
|
||||
command: ceph-disk activate {{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1
|
||||
command: ceph-disk activate "{{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\1p') | regex_replace('^(\/dev\/loop[0-9]{1})$', '\1p') }}1"
|
||||
with_items:
|
||||
- "{{ devices|unique }}"
|
||||
changed_when: false
|
||||
|
@ -13,7 +13,7 @@
|
|||
- not dmcrypt
|
||||
|
||||
- name: activate osd(s) when device is a disk (dmcrypt)
|
||||
command: ceph-disk activate --dmcrypt {{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1
|
||||
command: ceph-disk activate --dmcrypt "{{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\1p') | regex_replace('^(\/dev\/loop[0-9]{1})$', '\1p') }}1"
|
||||
with_items:
|
||||
- "{{ devices|unique }}"
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue