mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #2215 from squidboylan/support_loopback_devices
Add support for using loopback devices as OSDspull/2221/head
commit
b449b16edd
|
@ -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