2017-07-19 23:05:42 +08:00
|
|
|
---
|
2017-12-02 03:37:44 +08:00
|
|
|
- name: "use ceph-volume to create {{ osd_objectstore }} osds"
|
2017-12-01 21:33:16 +08:00
|
|
|
ceph_volume:
|
2017-12-01 22:41:40 +08:00
|
|
|
cluster: "{{ cluster }}"
|
2017-12-01 21:33:16 +08:00
|
|
|
objectstore: "{{ osd_objectstore }}"
|
|
|
|
data: "{{ item.data }}"
|
|
|
|
data_vg: "{{ item.data_vg|default(omit) }}"
|
|
|
|
journal: "{{ item.journal|default(omit) }}"
|
|
|
|
journal_vg: "{{ item.journal_vg|default(omit) }}"
|
|
|
|
db: "{{ item.db|default(omit) }}"
|
|
|
|
db_vg: "{{ item.db_vg|default(omit) }}"
|
|
|
|
wal: "{{ item.wal|default(omit) }}"
|
|
|
|
wal_vg: "{{ item.wal_vg|default(omit) }}"
|
2018-01-12 00:59:01 +08:00
|
|
|
crush_device_class: "{{ item.crush_device_class|default(omit) }}"
|
2018-01-19 23:44:59 +08:00
|
|
|
dmcrypt: "{{ dmcrypt|default(omit) }}"
|
2018-07-09 22:58:35 +08:00
|
|
|
action: "{{ 'prepare' if containerized_deployment else 'create' }}"
|
2017-11-14 04:56:51 +08:00
|
|
|
environment:
|
2020-08-06 00:02:48 +08:00
|
|
|
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
|
2018-07-17 00:09:33 +08:00
|
|
|
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
|
2018-11-08 17:02:37 +08:00
|
|
|
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
2019-04-02 04:02:28 +08:00
|
|
|
PYTHONIOENCODING: utf-8
|
2018-10-04 01:52:42 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
2019-08-23 02:29:40 +08:00
|
|
|
tags: prepare_osd
|