mirror of https://github.com/ceph/ceph-ansible.git
22 lines
962 B
YAML
22 lines
962 B
YAML
---
|
|
- name: Use ceph-volume to create osds
|
|
ceph_volume:
|
|
cluster: "{{ cluster }}"
|
|
objectstore: "{{ osd_objectstore }}"
|
|
data: "{{ item.data }}"
|
|
data_vg: "{{ item.data_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) }}"
|
|
crush_device_class: "{{ item.crush_device_class | default(crush_device_class) | default(omit) }}"
|
|
dmcrypt: "{{ dmcrypt | default(omit) }}"
|
|
action: "{{ 'prepare' if containerized_deployment | bool else 'create' }}"
|
|
environment:
|
|
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
|
|
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else None }}"
|
|
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
|
PYTHONIOENCODING: utf-8
|
|
with_items: "{{ lvm_volumes }}"
|
|
tags: prepare_osd
|