2016-07-19 23:53:21 +08:00
|
|
|
---
|
2016-07-19 23:55:57 +08:00
|
|
|
## SCENARIO 6: DMCRYPT N JOURNAL DEVICES FOR N OSDS
|
2016-07-19 23:53:21 +08:00
|
|
|
|
|
|
|
- include: ../check_devices.yml
|
|
|
|
|
|
|
|
# NOTE (leseb): the prepare process must be parallelized somehow...
|
|
|
|
# if you have 64 disks with 4TB each, this will take a while
|
|
|
|
# since Ansible will sequential process the loop
|
|
|
|
|
|
|
|
# NOTE (alahouze): if the device is a partition, the parted command below has
|
|
|
|
# failed, this is why we check if the device is a partition too.
|
2016-07-19 23:55:57 +08:00
|
|
|
- name: prepare osd disk(s)
|
|
|
|
command: "ceph-disk prepare --dmcrypt --cluster {{ cluster }} {{ item.2 }} {{ item.3 }}"
|
2016-07-19 23:53:21 +08:00
|
|
|
with_together:
|
2016-08-17 05:49:30 +08:00
|
|
|
- parted_results.results
|
|
|
|
- ispartition_results.results
|
2016-07-19 23:53:21 +08:00
|
|
|
- devices
|
2016-07-19 23:55:57 +08:00
|
|
|
- raw_journal_devices
|
|
|
|
changed_when: false
|
2016-07-19 23:53:21 +08:00
|
|
|
when:
|
|
|
|
- not item.0.get("skipped")
|
|
|
|
- not item.1.get("skipped")
|
|
|
|
- item.0.get("rc", 0) != 0
|
|
|
|
- item.1.get("rc", 0) != 0
|
2016-07-19 23:55:57 +08:00
|
|
|
- raw_multi_journal
|
2016-07-19 23:53:21 +08:00
|
|
|
- not osd_auto_discovery
|
2016-07-19 23:55:57 +08:00
|
|
|
- dmcrypt_dedicated_journal
|
2016-07-19 23:53:21 +08:00
|
|
|
|
|
|
|
- include: ../activate_osds.yml
|