2018-08-04 00:15:58 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: "use ceph-volume lvm batch to create {{ osd_objectstore }} osds"
|
|
|
|
ceph_volume:
|
|
|
|
cluster: "{{ cluster }}"
|
|
|
|
objectstore: "{{ osd_objectstore }}"
|
2020-01-14 16:42:43 +08:00
|
|
|
batch_devices: "{{ _devices }}"
|
2018-08-04 00:15:58 +08:00
|
|
|
dmcrypt: "{{ dmcrypt|default(omit) }}"
|
2018-08-07 04:14:53 +08:00
|
|
|
crush_device_class: "{{ crush_device_class|default(omit) }}"
|
2018-09-07 03:00:56 +08:00
|
|
|
osds_per_device: "{{ osds_per_device }}"
|
2018-09-21 01:26:24 +08:00
|
|
|
journal_size: "{{ journal_size }}"
|
|
|
|
block_db_size: "{{ block_db_size }}"
|
2019-08-20 21:57:45 +08:00
|
|
|
block_db_devices: "{{ dedicated_devices | unique if dedicated_devices | length > 0 else omit }}"
|
2019-08-23 15:02:12 +08:00
|
|
|
wal_devices: "{{ bluestore_wal_devices | unique if bluestore_wal_devices | length > 0 else omit }}"
|
2020-02-29 02:59:22 +08:00
|
|
|
journal_devices: "{{ dedicated_devices | unique if dedicated_devices | length > 0 else omit }}"
|
2018-08-04 00:15:58 +08:00
|
|
|
action: "batch"
|
|
|
|
environment:
|
2020-08-06 00:02:48 +08:00
|
|
|
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
|
2020-09-26 00:15:02 +08:00
|
|
|
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else None }}"
|
2018-11-27 17:03:07 +08:00
|
|
|
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
2019-04-02 04:02:28 +08:00
|
|
|
PYTHONIOENCODING: utf-8
|
2020-02-29 02:59:22 +08:00
|
|
|
when: _devices | default([]) | length > 0
|