Appendix I. OSD Ansible settings

These are the most common configurable OSD Ansible parameters.

devices

List of devices where Ceph’s data is stored.

Value
User-defined
Required
Yes, if specifying a list of devices.
Notes
Cannot be used when osd_auto_discovery setting is used. When using the devices option, ceph-volume lvm batch mode creates the optimized OSD configuration.
dmcrypt

To encrypt the OSDs.

Value
true
Required
No
Notes
The default value is false.
lvm_volumes

A list of FileStore or BlueStore dictionaries.

Value
User-defined
Required
Yes, if storage devices are not defined using the devices parameter.
Notes
Each dictionary must contain a data, journal and data_vg keys. Any logical volume or volume group must be the name and not the full path. The data, and journal keys can be a logical volume (LV) or partition, but do not use one journal for multiple data LVs. The data_vg key must be the volume group containing the data LV. Optionally, the journal_vg key can be used to specify the volume group containing the journal LV, if applicable.
osds_per_device

The number of OSDs to create per device.

Value
User-defined
Required
No
Notes
The default value is 1.
osd_objectstore

The Ceph object store type for the OSDs.

Value
bluestore or filestore
Required
No
Notes
The default value is bluestore. Required for upgrades.